feat(recipe): Layout state and navigation for Recipe create & update

This commit is contained in:
2024-05-14 11:05:31 +03:00
parent fb2ebe5a70
commit a32117953d
11 changed files with 660 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
// ignore_for_file: must_be_immutable
import 'package:equatable/equatable.dart';
/// This class defines the variables used in the [recipe_create_screen],
/// and is typically used to hold data that is passed between different parts of the application.
class RecipeCreateModel extends Equatable {
final String recipeID;
RecipeCreateModel({required String recipeID}) : recipeID = recipeID;
RecipeCreateModel copyWith(String recipeID) {
return RecipeCreateModel(recipeID: recipeID);
}
@override
List<Object?> get props => [recipeID];
}