import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:syncrow_app/utils/bloc_observer.dart'; import 'my_app.dart'; void main() { Bloc.observer = MyBlocObserver(); //TODO: Uncomment // runZonedGuarded(() async { // const environment = // String.fromEnvironment('FLAVOR', defaultValue: 'production'); // await dotenv.load(fileName: '.env.$environment'); // // HttpOverrides.global = MyHttpOverrides(); // WidgetsFlutterBinding.ensureInitialized(); // LicenseRegistry.addLicense(() async* { // final license = // await rootBundle.loadString('assets/fonts/roboto/LICENSE.txt'); // yield LicenseEntryWithLineBreaks(['google_fonts'], license); // }); // initialSetup(); // await LocalizationService.saveLocale(const Locale("en", "AE")); // // final savedLocale = await LocalizationService.savedLocale(); // // runApp(const MyApp(Locale('en', ''))); // }, (error, stackTrace) { // FirebaseCrashlytics.instance.recordError(error, stackTrace, fatal: true); // }); runApp(const MyApp(Locale('en', ''))); }