fixedlocationhomepage

This commit is contained in:
2025-02-22 12:35:25 +05:30
parent e3b601ee7d
commit 2c3e7e2992
16 changed files with 244 additions and 116 deletions

View File

@@ -29,11 +29,12 @@ class _SplashScreenState extends State<SplashScreen> {
@override
void initState() {
Future.delayed(const Duration(seconds: 2), () async {
Future.delayed(const Duration(seconds: 2), () async
{
Provider.of<BottomNavProvider>(context, listen: false)
.refreshToken(context);
if (await SharedPrefUtils.isFreshInstall()) {
Provider.of<BottomNavProvider>(context, listen: false) .refreshToken(context);
if (await SharedPrefUtils.isFreshInstall())
{
context.clearAndPush(routePath: MyRoutes.ONBOARDING);
} else {
context.clearAndPush(routePath: MyRoutes.BOTTOMNAV);