|
|
|
@ -340,15 +340,13 @@ class Helpers {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static clearSharedPref() async {
|
|
|
|
static clearSharedPref() async {
|
|
|
|
String lang = await sharedPref.getString(APP_Language);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await sharedPref.clear();
|
|
|
|
await sharedPref.clear();
|
|
|
|
sharedPref.setString(APP_Language, lang);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
logout() async {
|
|
|
|
logout() async {
|
|
|
|
|
|
|
|
String lang = await sharedPref.getString(APP_Language);
|
|
|
|
await clearSharedPref();
|
|
|
|
await clearSharedPref();
|
|
|
|
|
|
|
|
sharedPref.setString(APP_Language, lang);
|
|
|
|
Navigator.of(AppGlobal.CONTEX).pushReplacementNamed(LOGIN);
|
|
|
|
Navigator.of(AppGlobal.CONTEX).pushReplacementNamed(LOGIN);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|