changed up the way that ingredients can be added

This commit is contained in:
SomnusVeritas
2023-10-04 16:35:17 +02:00
parent 518631f37f
commit 263fe00407
5 changed files with 133 additions and 8 deletions

View File

@@ -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 [],
});
}