initial commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user