first commit

This commit is contained in:
kicap
2023-11-04 03:55:38 +08:00
commit 212fb855f9
169 changed files with 8572 additions and 0 deletions

View File

@ -0,0 +1,13 @@
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 mySharedPrefs.clear();
await Future.delayed(const Duration(seconds: 3));
await navigationService.navigateTo(Routes.loginScreenView);
}
}