add logout function 1

logout_function
enadhilal 6 years ago
parent 38c5e7558e
commit ac4c821719

@ -79,4 +79,9 @@ class AuthenticationViewModel with ChangeNotifier {
notifyListeners(); 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,), SizedBox(height: MediaQuery.of(context).size.width*0.05,),
InkWell( InkWell(

Loading…
Cancel
Save