feat: enhance ProductPickerField and ParsedReceiptItem to support category filtering in receipt import

This commit is contained in:
Nils-Johan Gynther
2026-05-01 02:05:53 +02:00
parent 47801935e9
commit 84dfbc4a52
4 changed files with 35 additions and 9 deletions
@@ -270,7 +270,7 @@ class _PantryScreenState extends ConsumerState<PantryScreen> {
(a, b) => a.displayName.toLowerCase().compareTo(b.displayName.toLowerCase()),
);
final availableOptions = availableProducts
.map((p) => (id: p.id, name: p.displayName))
.map((p) => (id: p.id, name: p.displayName, categoryId: null as int?))
.toList();
final grouped = <String, List<PantryItem>>{};