added models

This commit is contained in:
SomnusVeritas
2023-10-02 19:38:26 +02:00
parent ab2c1c36c2
commit 2e35cd1f9d
3 changed files with 42 additions and 0 deletions

18
lib/models/recipe.dart Normal file
View File

@@ -0,0 +1,18 @@
import 'ingredient.dart';
import 'steps.dart';
class Recipe {
final String title;
final String description;
final Difficulty? difficulty;
final List<Ingredient> ingredients = [];
final Steps steps = Steps();
Recipe({
required this.title,
this.description = '',
this.difficulty,
});
}
enum Difficulty { veryEasy, easy, intermediate, hard, veryHard }