added expandable list of ingredients
This commit is contained in:
17
lib/models/unit.dart
Normal file
17
lib/models/unit.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
class Unit {
|
||||
final String name;
|
||||
final UnitType type;
|
||||
final System system;
|
||||
|
||||
Unit(this.name, this.type, {this.system = System.metric});
|
||||
}
|
||||
|
||||
enum System { metric, imperial, neutral }
|
||||
|
||||
enum UnitType {
|
||||
metric,
|
||||
imperial,
|
||||
fluid,
|
||||
weight,
|
||||
count,
|
||||
}
|
||||
Reference in New Issue
Block a user