fixedlocationhomepage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user