added expandable list of ingredients

This commit is contained in:
SomnusVeritas
2023-10-03 17:02:07 +02:00
parent 2d77247f1f
commit 10463bb61a
6 changed files with 128 additions and 48 deletions

16
lib/constants.dart Normal file
View File

@@ -0,0 +1,16 @@
import 'models/unit.dart';
Iterable<Unit> units = [
Unit('mg', UnitType.weight),
Unit('g', UnitType.weight),
Unit('kg', UnitType.weight),
Unit('ml', UnitType.fluid),
Unit('cl', UnitType.fluid),
Unit('dl', UnitType.fluid),
Unit('l', UnitType.fluid),
Unit('teaspoon', UnitType.fluid, system: System.imperial),
Unit('tablespoon', UnitType.fluid, system: System.imperial),
Unit('cup', UnitType.fluid, system: System.imperial),
Unit('pint', UnitType.fluid, system: System.imperial),
Unit('pieces', UnitType.count, system: System.neutral),
];