Pressing pogchamp (submitting) returns to home)

This commit is contained in:
2023-12-26 22:20:08 +02:00
parent f9349241f7
commit 7a06920fac

View File

@@ -188,7 +188,10 @@ showAlertDialog(BuildContext context, int chosenLine, String chosenColour, Strin
Widget okButton = TextButton( Widget okButton = TextButton(
child: const Text("Pogchamp"), child: const Text("Pogchamp"),
onPressed: () { onPressed: () {
Navigator.of(context).pop(); Navigator.pushNamedAndRemoveUntil(
context,
'/',
(route) => false);
}, },
); );