feat:restaurants by category page done

This commit is contained in:
jahongireshonqulov
2025-10-24 19:44:52 +05:00
parent e0f3d900d7
commit ffbc153b55
20 changed files with 409 additions and 30 deletions

View File

@@ -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),
),
),
],
);

View File

@@ -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';
}