feat: add recipe creation, editing, and detail screens; enhance recipe model with instructions and ingredients

This commit is contained in:
Nils-Johan Gynther
2026-04-22 07:53:25 +02:00
parent 2ea18503ef
commit ed4e18dc31
10 changed files with 1017 additions and 44 deletions
@@ -17,3 +17,12 @@ final recipesProvider = FutureProvider<List<Recipe>>((ref) async {
() => ref.read(recipeRepositoryProvider).fetchRecipes(token: token),
);
});
final recipeDetailProvider =
FutureProvider.family<Recipe, int>((ref, id) async {
final token = await ref.watch(authStateProvider.future);
return guardedApiCall(
ref,
() => ref.read(recipeRepositoryProvider).fetchRecipeDetail(id, token: token),
);
});