big fixes

dq_and_master
Sultan Khan 4 years ago
parent 99ee5b4545
commit eec67ac930

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

@ -160,8 +160,7 @@ class AuthProvider with ChangeNotifier {
}, body: request);
return Future.value(localRes);
} catch (error) {
//print(error);
throw error;
return Future.value(null);
}
}

@ -70,7 +70,7 @@ class _AppDrawerState extends State<AppDrawer> {
padding: EdgeInsets.zero,
children: <Widget>[
Container(
height: SizeConfig.screenHeight * .28,
height: SizeConfig.screenHeight * .30,
padding: EdgeInsets.all(15),
child: InkWell(
child: Column(

Loading…
Cancel
Save