add logout function
parent
692d080e25
commit
9c5239d6b3
|
@ -20,7 +20,7 @@ Widget getTile(
|
|||
onTap: () async {
|
||||
if (title.toLowerCase() == "logout") {
|
||||
confirmAlert(context, () {
|
||||
context.goNamed("login");
|
||||
Navigator.pushReplacementNamed (context,"/");
|
||||
});
|
||||
} else {
|
||||
Navigator.pushNamed(context, route);
|
||||
|
|
Loading…
Reference in New Issue