From a9e6ae2f34de8ceb01e79906f19efef56846f368 Mon Sep 17 00:00:00 2001 From: anthonycicc Date: Sat, 12 May 2018 15:12:43 -0400 Subject: [PATCH] Pops out when you edit either, to prevent duplicate entries --- lib/NoZeroDays.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NoZeroDays.dart b/lib/NoZeroDays.dart index 2cbad35..96bae15 100644 --- a/lib/NoZeroDays.dart +++ b/lib/NoZeroDays.dart @@ -83,6 +83,7 @@ class _NoZeroDaysState extends State { _zerodayslist.remove(entry); _zerodayslist.add(new Entry(newValue, entry.whatYouDid)); }); + Navigator.pop(context); }); }), new TextFormField( @@ -92,6 +93,7 @@ class _NoZeroDaysState extends State { _zerodayslist.remove(entry); _zerodayslist.add(new Entry(entry.date, newValue)); }); + Navigator.pop(context); }, ), ],