initial commit

This commit is contained in:
2024-03-19 15:51:03 +01:00
parent 5c18ba7beb
commit 5e671eeb08
9 changed files with 241 additions and 114 deletions
+21
View File
@@ -0,0 +1,21 @@
import 'package:flutter/material.dart';
enum Categories {
vegetables,
fruit,
meat,
dairy,
carbs,
sweets,
spices,
convenience,
hygiene,
other
}
class Category {
const Category(this.title, this.color);
final String title;
final Color color;
}
+15
View File
@@ -0,0 +1,15 @@
import 'package:flutter_shopping_list/models/category.dart';
class GroceryItem {
const GroceryItem({
required this.id,
required this.name,
required this.quantity,
required this.category,
});
final String id;
final String name;
final int quantity;
final Category category;
}