This commit is contained in:
bestonemitRam
2025-01-29 00:59:14 +05:30
parent 3121e0ee36
commit 5c69ac3322
20 changed files with 1638 additions and 649 deletions

View File

@@ -29,21 +29,11 @@ class _SplashScreenState extends State<SplashScreen> {
Future.delayed(const Duration(seconds: 2), () async {
if (await SharedPrefUtils.isFreshInstall()) {
context.clearAndPush(routePath: MyRoutes.ONBOARDING);
} else
{
print("kdsbfjhdkjfdfghv ${await SharedPrefUtils.getToken()}");
if (await SharedPrefUtils.getToken() == "1" ||
await SharedPrefUtils.getToken() == null) {
// context.clearAndPush(routePath: MyRoutes.SELECTACCOUNT);
} else {
context.clearAndPush(routePath: MyRoutes.BOTTOMNAV);
}
} else {
context.clearAndPush(routePath: MyRoutes.BOTTOMNAV);
}
});
Future.delayed(const Duration(seconds: 2), () async {
context.clearAndPush(routePath: MyRoutes.ONBOARDING);
});
super.initState();
}