refactor: update global states to ValueNotifiers

This commit is contained in:
shenlong-tanwen
2024-10-18 09:19:39 +05:30
parent c91a2878dc
commit e8bb9a3934
7 changed files with 21 additions and 22 deletions
@@ -54,7 +54,7 @@ class _SplashScreenState extends State<SplashScreenPage>
Future<void> _tryLogin() async {
if (await di<LoginService>().tryAutoLogin() && mounted) {
unawaited(di<AssetSyncService>()
.performFullRemoteSyncIsolate(di<CurrentUserCubit>().state));
.performFullRemoteSyncIsolate(di<CurrentUserProvider>().value));
unawaited(di<AlbumSyncService>().performFullDeviceSyncIsolate());
unawaited(context.replaceRoute(const TabControllerRoute()));
} else {