diff --git a/lib/entry/edit_entry_page.dart b/lib/entry/edit_entry_page.dart index d40ada6..4c626dc 100644 --- a/lib/entry/edit_entry_page.dart +++ b/lib/entry/edit_entry_page.dart @@ -586,6 +586,7 @@ class _EditEntryPageState extends State { onBarcode: (value) { setState(() { barcode = value; + foodDirty = true; }); toast(context, 'Barcode not found. Save to insert.'); }, @@ -610,6 +611,7 @@ class _EditEntryPageState extends State { if (path == null) return; setState(() { imageFile = path; + foodDirty = true; }); }, ), @@ -620,6 +622,7 @@ class _EditEntryPageState extends State { label: const Text("Remove image"), onPressed: () => setState(() { imageFile = null; + foodDirty = true; }), ), ],