Skip to content

Commit 1f6fc92

Browse files
committed
chor: minor fixes
Signed-off-by: Aman <aman2@me.iitr.ac.in>
1 parent 6e749a5 commit 1f6fc92

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

lib/presentation/core/main_app.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import '../../data/constants/styles.dart';
99
import '../../data/services/local/image_service.dart';
1010
import '../../data/services/local/storage_service.dart';
1111
import '../../data/services/remote/api_service.dart';
12+
import '../../data/services/remote/notification_service.dart';
1213
import '../../domain/repositories/user_repository.dart';
1314
import 'navigation_observer.dart';
1415
import '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

pubspec.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)