From bd9bf4843e0812e9c812a8b93f1d5f2ab0a2b99d Mon Sep 17 00:00:00 2001 From: maxxkim Date: Wed, 14 Aug 2024 15:13:02 +0300 Subject: [PATCH] fix(recipe): Fix --- lib/app_router.dart | 6 ++++++ lib/features/recipes/models/image.g.dart | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/app_router.dart b/lib/app_router.dart index b2d8b20a..03a17959 100644 --- a/lib/app_router.dart +++ b/lib/app_router.dart @@ -15,6 +15,7 @@ import 'package:eatvio_app/features/feed/models/recipes_model.dart'; import 'package:eatvio_app/features/feed/presentation/pages/feed_screen.dart'; import 'package:eatvio_app/features/profile/presentation/pages/profile_screen.dart'; import 'package:eatvio_app/features/recipes/presentation/pages/about_recipes_screen.dart'; +import 'package:eatvio_app/features/recipes/presentation/pages/recipe_create_screen.dart'; import 'package:eatvio_app/features/registration/presentation/pages/registration_screen.dart'; import 'package:eatvio_app/presentation/auth/auth_screen/auth_screen.dart'; import 'package:eatvio_app/presentation/diets/diet_create_screen/diet_create_screen.dart'; @@ -96,6 +97,11 @@ class AppRouter { recipes: state.extra as Recipes, ), ), + GoRoute( + path: '/recipe-create-screen', + name: 'recipeCreateScreen', + builder: (context, state) => RecipeCreateScreen(), + ), GoRoute( path: '/profile-screen', name: 'profileScreen', diff --git a/lib/features/recipes/models/image.g.dart b/lib/features/recipes/models/image.g.dart index 0d54e19f..3e44a28c 100644 --- a/lib/features/recipes/models/image.g.dart +++ b/lib/features/recipes/models/image.g.dart @@ -10,7 +10,6 @@ _$ImageImpl _$$ImageImplFromJson(Map json) => _$ImageImpl( path: json['path'] as String, ); -Map _$$ImageImplToJson(_$ImageImpl instance) => - { +Map _$$ImageImplToJson(_$ImageImpl instance) => { 'path': instance.path, };