feat(recipe): API for recipe create and edit

This commit is contained in:
2024-08-16 14:04:25 +03:00
parent 1c63127eb5
commit 92d5437e06
3 changed files with 6 additions and 13 deletions

View File

@@ -472,6 +472,8 @@ class RecipeCreateScreen extends StatelessWidget {
image: state.recipeImage?.path,
video_url: state.youtubeLinkController.text.isNotEmpty ? state.youtubeLinkController.text : null,
);
print(recipe.toJson());
print(recipe.toString());
print(recipe);
return recipe;
}

View File

@@ -487,7 +487,6 @@ class RecipeEditScreen extends StatelessWidget {
image: state.recipeImage?.path,
video_url: state.youtubeLinkController.text.isNotEmpty ? state.youtubeLinkController.text : null,
);
print(recipe.toJson());
return recipe;
}
}