Files
CheckTheethKids/lib/main.dart
Carlos Correia d24cb3242a Documentação
2026-05-03 23:31:31 +01:00

43 lines
1.1 KiB
Dart

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(),
);
}
}