create wallet witch pci work in progress
This commit is contained in:
@@ -23,13 +23,13 @@ class CheckSessionUseCaseImpl implements CheckSessionUseCase {
|
||||
debugPrint('[CheckSession] → onboarding');
|
||||
return InitialRoute.onboarding;
|
||||
}
|
||||
|
||||
try {
|
||||
await _userRepository.getUserInfo();
|
||||
return InitialRoute.home;
|
||||
} catch (e) {
|
||||
debugPrint('[CheckSessionUseCase] error: $e');
|
||||
return InitialRoute.login;
|
||||
}
|
||||
return InitialRoute.login;
|
||||
// try {
|
||||
// await _userRepository.getUserInfo();
|
||||
// return InitialRoute.home;
|
||||
// } catch (e) {
|
||||
// debugPrint('[CheckSessionUseCase] error: $e');
|
||||
// return InitialRoute.login;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
enum InitialRoute { login, home, onboarding }
|
||||
enum InitialRoute { login, onboarding }
|
||||
|
||||
@@ -53,9 +53,9 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
if (!_animationDone || _route == null || !mounted) return;
|
||||
|
||||
final destination = switch (_route!) {
|
||||
InitialRoute.onboarding => AppRoutes.legacyOnboarding,
|
||||
InitialRoute.login => AppRoutes.legacyLogin,
|
||||
InitialRoute.home => AppRoutes.controlPanel,
|
||||
InitialRoute.onboarding => AppRoutes.onboarding,
|
||||
InitialRoute.login => AppRoutes.login,
|
||||
// InitialRoute.home => AppRoutes.dashboardHome,
|
||||
};
|
||||
widget.navigationContract.goTo(destination);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user