changed up the way that ingredients can be added
This commit is contained in:
@@ -2,12 +2,12 @@ import 'unit.dart';
|
||||
|
||||
class Ingredient {
|
||||
final String title;
|
||||
List<Unit> possibleUnits = [];
|
||||
List<String> preferredBrands = [];
|
||||
List<Unit> possibleUnits;
|
||||
List<String> preferredBrands;
|
||||
|
||||
Ingredient({
|
||||
required this.title,
|
||||
required this.possibleUnits,
|
||||
required this.preferredBrands,
|
||||
this.preferredBrands = const [],
|
||||
});
|
||||
}
|
||||
|
||||
@@ -9,8 +9,6 @@ class Unit {
|
||||
enum System { metric, imperial, neutral }
|
||||
|
||||
enum UnitType {
|
||||
metric,
|
||||
imperial,
|
||||
fluid,
|
||||
weight,
|
||||
count,
|
||||
|
||||
Reference in New Issue
Block a user