diff --git a/lib/main.dart b/lib/main.dart index e4eea7a..574e2e0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -14,10 +14,16 @@ var logger = Logger(); void main() async { WidgetsFlutterBinding.ensureInitialized(); + await dotenv.load(fileName: 'assets/config/.env'); await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); - runApp(const ProviderScope(child: MyApp())); + + runApp( + const ProviderScope( + child: MyApp(), + ), + ); } class MyApp extends StatefulWidget { @@ -42,8 +48,8 @@ class _MyAppState extends State { title: 'TuneFun', debugShowCheckedModeBanner: false, theme: AppTheme.theme, - // home: const HomeScreen(), - home: const FcmTestScreen(), + home: const HomeScreen(), + // home: const FcmTestScreen(), ); } } diff --git a/pubspec.lock b/pubspec.lock index 2a354a1..e93a2d2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -813,7 +813,7 @@ packages: source: hosted version: "1.3.2" uuid: - dependency: transitive + dependency: "direct main" description: name: uuid sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 diff --git a/pubspec.yaml b/pubspec.yaml index 7d49b86..647e872 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -48,6 +48,7 @@ dependencies: firebase_core: ^2.24.2 firebase_messaging: ^14.7.10 flutter_local_notifications: ^16.3.2 + uuid: ^4.3.3 dev_dependencies: flutter_test: