From fca9ad2a50973c1c1cfdfb951920f89bc19f9082 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 3 Apr 2020 22:27:15 +1100 Subject: [PATCH] "Home" button pops stack --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 03e19fc5..22e3a299 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -106,7 +106,7 @@ class _MyHomePageState extends State { void _goHome() { // Reset the stack, go to "home" - Navigator.pushNamed(context, "/"); + Navigator.pushNamedAndRemoveUntil(context, "/", (r) => false); } void _showParts() {