add logout function

feature/passo/PASSO-#1-Sync-data-from-device-to-postgre-and-vice-versa
rodolfobacuinjr 2023-01-23 16:27:44 +08:00
parent 692d080e25
commit 9c5239d6b3
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Widget getTile(
onTap: () async { onTap: () async {
if (title.toLowerCase() == "logout") { if (title.toLowerCase() == "logout") {
confirmAlert(context, () { confirmAlert(context, () {
context.goNamed("login"); Navigator.pushReplacementNamed (context,"/");
}); });
} else { } else {
Navigator.pushNamed(context, route); Navigator.pushNamed(context, route);