Documentação

This commit is contained in:
Carlos Correia
2026-05-03 23:31:31 +01:00
commit d24cb3242a
167 changed files with 14263 additions and 0 deletions

42
lib/main.dart Normal file
View File

@@ -0,0 +1,42 @@
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'dart:async';
import 'gates/debug_launch_gate.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError = (details) {
FlutterError.presentError(details);
Zone.current.handleUncaughtError(details.exception, details.stack ?? StackTrace.current);
};
runZonedGuarded(() async {
await Firebase.initializeApp();
runApp(const MyApp());
}, (error, stack) {
debugPrint('UNCAUGHT: $error');
debugPrintStack(stackTrace: stack);
});
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Check-Teeth Kids',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF2F9E94)),
scaffoldBackgroundColor: const Color(0xFFFFE2EF),
useMaterial3: true,
),
home: const DebugLaunchGate(),
);
}
}