@ -340,15 +340,13 @@ class Helpers {
}
static clearSharedPref() async {
String lang = await sharedPref.getString(APP_Language);
await sharedPref.clear();
sharedPref.setString(APP_Language, lang);
logout() async {
await clearSharedPref();
Navigator.of(AppGlobal.CONTEX).pushReplacementNamed(LOGIN);
@ -106,11 +106,8 @@ class _AppDrawerState extends State<AppDrawer> {
color: Colors.white,
),
onPressed: () async {
// await Helpers.clearSharedPref();
Navigator.pop(context);
await helpers.logout();
// Navigator.of(context).pushNamed(LOGIN);
},
],