changes to recipe class and providers

This commit is contained in:
SomnusVeritas
2023-11-05 20:54:57 +01:00
parent 1580ec723a
commit b17078cdef
6 changed files with 91 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
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<Unit> _weightAndCount = constants.units
.where((element) =>
@@ -25,3 +27,14 @@ final List<Ingredient> exampleIngredients = [
Ingredient(title: 'Milch', possibleUnits: _fluid),
Ingredient(title: 'Limettenblätter', possibleUnits: _count),
];
final List<Recipe> exampleRecipes = [
Recipe(
title: 'Wraps',
description: 'Nur ein paar Wraps',
difficulty: Difficulty.hard),
Recipe(
title: 'Burritos',
description: 'Nur ein paar Burritos',
difficulty: Difficulty.easy),
];