feat: enhance navigation by adding recipe links in inventory and pantry screens
This commit is contained in:
@@ -36,6 +36,11 @@ class RecipeDetailScreen extends ConsumerWidget {
|
||||
onPressed: () =>
|
||||
context.push('/recipes/$recipeId/edit'),
|
||||
),
|
||||
IconButton(
|
||||
tooltip: 'Gå till inventarie',
|
||||
icon: const Icon(Icons.inventory_2_outlined),
|
||||
onPressed: () => context.go('/inventory'),
|
||||
),
|
||||
_DeleteButton(recipe: recipeAsync.value!),
|
||||
],
|
||||
),
|
||||
@@ -46,6 +51,7 @@ class RecipeDetailScreen extends ConsumerWidget {
|
||||
onRetry: () => ref.invalidate(recipeDetailProvider(recipeId)),
|
||||
),
|
||||
data: (recipe) => CustomScrollView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
slivers: [
|
||||
SliverAppBar(
|
||||
expandedHeight: MediaQuery.of(context).size.height * 2 / 3,
|
||||
|
||||
Reference in New Issue
Block a user