feat: enhance ProductPickerField and ParsedReceiptItem to support category filtering in receipt import
This commit is contained in:
@@ -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>>{};
|
||||
|
||||
Reference in New Issue
Block a user