feat(recipe): Recipe edit screen and API

This commit is contained in:
2024-08-16 13:38:23 +03:00
parent aced7e8bcb
commit 1c63127eb5
20 changed files with 803 additions and 500 deletions

View File

@@ -91,7 +91,7 @@ class RecipeSelectScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(right: 20.0),
child: GestureDetector(
onTap: () => GoRouter.of(context).goNamed('recipeCreateScreen'),
onTap: () => GoRouter.of(context).pushNamed('recipeCreateScreen'),
child: Icon(Icons.create_outlined),
),
),
@@ -155,9 +155,9 @@ class RecipeSelectScreen extends StatelessWidget {
extra: post?['id'].toString(),
),
trailing: GestureDetector(
onTap: () => GoRouter.of(context).goNamed(
onTap: () => GoRouter.of(context).pushNamed(
'recipeEditScreen',
extra: post?['id'].toString(),
extra: post?['slug'].toString(),
),
child: Icon(Icons.edit),
),