File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import '../../data/constants/styles.dart';
99import '../../data/services/local/image_service.dart' ;
1010import '../../data/services/local/storage_service.dart' ;
1111import '../../data/services/remote/api_service.dart' ;
12+ import '../../data/services/remote/notification_service.dart' ;
1213import '../../domain/repositories/user_repository.dart' ;
1314import 'navigation_observer.dart' ;
1415import 'router.dart' ;
@@ -47,13 +48,17 @@ class Codephile extends StatelessWidget {
4748 ApiService .init ();
4849 ImageService .init ();
4950 StorageService .init ();
51+ NotificationService .init ();
52+
5053 if (StorageService .user != null ) {
5154 // Fetch User Details on Startup
5255 try {
5356 StorageService .user = await UserRepository .fetchUserDetails ();
5457 } on Exception catch (err) {
5558 debugPrint (err.toString ());
56- rethrow ;
59+ //rethrow;
60+ // Rethrowing error here causes the app
61+ // to stuck on the splash screen.
5762 }
5863 }
5964
Original file line number Diff line number Diff line change @@ -688,6 +688,13 @@ packages:
688688 url: "https://pub.dartlang.org"
689689 source: hosted
690690 version: "6.2.0"
691+ lint:
692+ dependency: transitive
693+ description:
694+ name: lint
695+ url: "https://pub.dartlang.org"
696+ source: hosted
697+ version: "1.8.2"
691698 lints:
692699 dependency: transitive
693700 description:
@@ -1127,6 +1134,13 @@ packages:
11271134 url: "https://pub.dartlang.org"
11281135 source: hosted
11291136 version: "1.3.1"
1137+ universal_io:
1138+ dependency: transitive
1139+ description:
1140+ name: universal_io
1141+ url: "https://pub.dartlang.org"
1142+ source: hosted
1143+ version: "2.0.4"
11301144 uuid:
11311145 dependency: transitive
11321146 description:
You can’t perform that action at this time.
0 commit comments