forked from eatvio/eatvio_app
feat(recipe): Recipe edit screen and API
This commit is contained in:
@@ -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),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user