ability to display added ingredients in listview
This commit is contained in:
@@ -7,7 +7,7 @@ class Ingredient {
|
||||
|
||||
Ingredient({
|
||||
required this.title,
|
||||
required this.possibleUnits,
|
||||
this.possibleUnits = const [],
|
||||
this.preferredBrands = const [],
|
||||
});
|
||||
|
||||
|
||||
11
lib/models/ingredient_list_entry.dart
Normal file
11
lib/models/ingredient_list_entry.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'ingredient.dart';
|
||||
import 'unit.dart';
|
||||
|
||||
class IngredientListEntry {
|
||||
final Ingredient ingredient;
|
||||
final int amount;
|
||||
final Unit unit;
|
||||
final bool optional;
|
||||
|
||||
IngredientListEntry(this.ingredient, this.amount, this.unit, this.optional);
|
||||
}
|
||||
Reference in New Issue
Block a user