|
|
@ -158,8 +158,6 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
} else if (await sharedPref.getObject(USER_PROFILE) != null) {
|
|
|
|
} else if (await sharedPref.getObject(USER_PROFILE) != null) {
|
|
|
|
getNotificationCount(token);
|
|
|
|
getNotificationCount(token);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
requestPermissions();
|
|
|
|
|
|
|
|
}).catchError((err) {
|
|
|
|
}).catchError((err) {
|
|
|
|
print(err);
|
|
|
|
print(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -518,12 +516,12 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
// themeNotifier.setTheme(defaultTheme);
|
|
|
|
// themeNotifier.setTheme(defaultTheme);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void checkUserStatus(token) async {
|
|
|
|
void checkUserStatus(token) async {
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
//GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
authService
|
|
|
|
authService
|
|
|
|
.selectDeviceImei(token)
|
|
|
|
.selectDeviceImei(token)
|
|
|
|
.then((SelectDeviceIMEIRES value) => setUserValues(value))
|
|
|
|
.then((SelectDeviceIMEIRES value) => setUserValues(value))
|
|
|
|
.catchError((err) {
|
|
|
|
.catchError((err) {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
//GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -545,6 +543,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
|
|
|
|
|
|
|
|
|
|
|
|
void setUserValues(value) async {
|
|
|
|
void setUserValues(value) async {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
requestPermissions();
|
|
|
|
sharedPref.setObject(IMEI_USER_DATA, value);
|
|
|
|
sharedPref.setObject(IMEI_USER_DATA, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|