From 7a06920facac8096e6ddc4e05cf44bc179ffb0d8 Mon Sep 17 00:00:00 2001 From: Supermjork Date: Tue, 26 Dec 2023 22:20:08 +0200 Subject: [PATCH] Pressing pogchamp (submitting) returns to home) --- lib/input_data.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/input_data.dart b/lib/input_data.dart index 6ee979b..9b30783 100644 --- a/lib/input_data.dart +++ b/lib/input_data.dart @@ -188,7 +188,10 @@ showAlertDialog(BuildContext context, int chosenLine, String chosenColour, Strin Widget okButton = TextButton( child: const Text("Pogchamp"), onPressed: () { - Navigator.of(context).pop(); + Navigator.pushNamedAndRemoveUntil( + context, + '/', + (route) => false); }, );