From 6d9bcc9ba1f2efd47d8265a09d36abd8a45e0ef3 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Fri, 11 Oct 2024 11:34:44 -0400 Subject: [PATCH] Pop confirmation modal only for changed forms (#178) --- lib/components/FormPage.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/FormPage.dart b/lib/components/FormPage.dart index e5be025..2cdb1d3 100644 --- a/lib/components/FormPage.dart +++ b/lib/components/FormPage.dart @@ -39,7 +39,7 @@ class _FormPageState extends State { changed = widget.changed || changed; return PopScope( - canPop: false, + canPop: !changed, onPopInvokedWithResult: (bool didPop, Object? result) async { if (didPop) { return;