Pops out when you edit either, to prevent duplicate entries

This commit is contained in:
anthonycicc 2018-05-12 15:12:43 -04:00
parent e54e8b7beb
commit a9e6ae2f34

View file

@ -83,6 +83,7 @@ class _NoZeroDaysState extends State<NoZeroDays> {
_zerodayslist.remove(entry); _zerodayslist.remove(entry);
_zerodayslist.add(new Entry(newValue, entry.whatYouDid)); _zerodayslist.add(new Entry(newValue, entry.whatYouDid));
}); });
Navigator.pop(context);
}); });
}), }),
new TextFormField( new TextFormField(
@ -92,6 +93,7 @@ class _NoZeroDaysState extends State<NoZeroDays> {
_zerodayslist.remove(entry); _zerodayslist.remove(entry);
_zerodayslist.add(new Entry(entry.date, newValue)); _zerodayslist.add(new Entry(entry.date, newValue));
}); });
Navigator.pop(context);
}, },
), ),
], ],