feat:restaurants by category page done
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:food_delivery_client/feature/home/presentation/pages/restaurants_by_category_page/restaurants_by_category_page.dart';
|
||||
|
||||
import '../../food_delivery_client.dart';
|
||||
|
||||
@@ -22,9 +23,15 @@ class AppRoutes {
|
||||
),
|
||||
GoRoute(
|
||||
path: Routes.filters,
|
||||
pageBuilder: (context, state) => CupertinoPage(child: FiltersPage(
|
||||
homeBloc: state.extra as HomeBloc,
|
||||
)),
|
||||
pageBuilder: (context, state) => CupertinoPage(
|
||||
child: FiltersPage(homeBloc: state.extra as HomeBloc),
|
||||
),
|
||||
),
|
||||
GoRoute(
|
||||
path: Routes.restaurantsByCategory,
|
||||
pageBuilder: (context, state) => CupertinoPage(
|
||||
child: RestaurantsByCategoryPage(categoryName: state.extra as String),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
@@ -4,7 +4,6 @@ abstract class Routes {
|
||||
static const String register = '/register';
|
||||
static const String main = '/main';
|
||||
static const String categories = '/categories';
|
||||
static const String filters= '/filters';
|
||||
|
||||
|
||||
static const String filters = '/filters';
|
||||
static const String restaurantsByCategory = '/restaurants-by-category';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user