add logout function 1

logout_function
enadhilal 5 years ago
parent 38c5e7558e
commit ac4c821719

@ -79,4 +79,9 @@ class AuthenticationViewModel with ChangeNotifier {
notifyListeners();
}
}
logout(){
sharedPref.clear();
notifyListeners();
}
}

@ -109,7 +109,10 @@ class SettingPage extends StatelessWidget {
),
],
),
onTap: (){},
onTap: (){
// AuthenticationViewModel.logout();
// Navigator.of(context).pushNamedAndRemoveUntil('/', ModalRoute.withName('/'));
},
),
SizedBox(height: MediaQuery.of(context).size.width*0.05,),
InkWell(

Loading…
Cancel
Save