Documentação
This commit is contained in:
42
lib/main.dart
Normal file
42
lib/main.dart
Normal 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(),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user