first commit
This commit is contained in:
12
lib/ui/views/splash_screen/splash_screen_view_model.dart
Normal file
12
lib/ui/views/splash_screen/splash_screen_view_model.dart
Normal file
@ -0,0 +1,12 @@
|
||||
import '../../../app/app.logger.dart';
|
||||
import '../../../app/app.router.dart';
|
||||
import '../../../app/core/custom_base_view_model.dart';
|
||||
|
||||
class SplashScreenViewModel extends CustomBaseViewModel {
|
||||
final log = getLogger('SplashScreenViewModel');
|
||||
Future<void> init() async {
|
||||
// await 3 seconds then go to login
|
||||
await Future.delayed(const Duration(seconds: 3));
|
||||
await navigationService.navigateTo(Routes.loginScreenView);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user