init before app launch
This commit is contained in:
@@ -115,6 +115,8 @@ Future<void> initApp() async {
|
|||||||
yield LicenseEntryWithLineBreaks([license.key], license.value);
|
yield LicenseEntryWithLineBreaks([license.key], license.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await NetworkRepository.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
class ImmichApp extends ConsumerStatefulWidget {
|
class ImmichApp extends ConsumerStatefulWidget {
|
||||||
@@ -168,7 +170,6 @@ class ImmichAppState extends ConsumerState<ImmichApp> with WidgetsBindingObserve
|
|||||||
}
|
}
|
||||||
SystemChrome.setSystemUIOverlayStyle(overlayStyle);
|
SystemChrome.setSystemUIOverlayStyle(overlayStyle);
|
||||||
await ref.read(localNotificationService).setup();
|
await ref.read(localNotificationService).setup();
|
||||||
await NetworkRepository.init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<DeepLink> _deepLinkBuilder(PlatformDeepLink deepLink) async {
|
Future<DeepLink> _deepLinkBuilder(PlatformDeepLink deepLink) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user