import 'package:rezepte/models/difficulty.dart'; import 'package:rezepte/models/unit.dart'; import 'models/ingredient.dart'; import 'constants.dart' as constants; import 'models/recipe.dart'; final List _weightAndCount = constants.units .where((element) => element.type == UnitType.weight || element.type == UnitType.count) .toList(); final List _weight = constants.units .where((element) => element.type == UnitType.weight) .toList(); final List _count = constants.units.where((element) => element.type == UnitType.count).toList(); final List _fluid = constants.units.where((element) => element.type == UnitType.fluid).toList(); final List exampleIngredients = [ Ingredient(title: 'Karotte', possibleUnits: _weightAndCount), Ingredient(title: 'Kartoffel', possibleUnits: _weightAndCount), Ingredient(title: 'Kaffeebohnen', possibleUnits: _weight), Ingredient(title: 'Milch', possibleUnits: _fluid), Ingredient(title: 'Limettenblätter', possibleUnits: _count), ]; final List exampleRecipes = [ Recipe( title: 'Wraps', description: 'Nur ein paar Wraps', difficulty: Difficulty.hard), Recipe( title: 'Burritos', description: 'Nur ein paar Burritos', difficulty: Difficulty.easy), ];