Skip to content

Commit

Permalink
Fix images not saving from entries
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonp2412 committed Aug 18, 2024
1 parent 2c91568 commit 4fbbcaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/entry/edit_entry_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ class _EditEntryPageState extends State<EditEntryPage> {
onBarcode: (value) {
setState(() {
barcode = value;
foodDirty = true;
});
toast(context, 'Barcode not found. Save to insert.');
},
Expand All @@ -610,6 +611,7 @@ class _EditEntryPageState extends State<EditEntryPage> {
if (path == null) return;
setState(() {
imageFile = path;
foodDirty = true;
});
},
),
Expand All @@ -620,6 +622,7 @@ class _EditEntryPageState extends State<EditEntryPage> {
label: const Text("Remove image"),
onPressed: () => setState(() {
imageFile = null;
foodDirty = true;
}),
),
],
Expand Down

0 comments on commit 4fbbcaf

Please sign in to comment.