feat:filters done

This commit is contained in:
jahongireshonqulov
2025-10-24 18:06:43 +05:00
parent f2ab615b4e
commit e0f3d900d7
30 changed files with 635 additions and 44 deletions

View File

@@ -483,6 +483,30 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Apply'**
String get apply;
/// No description provided for @pickedForYouDefault.
///
/// In en, this message translates to:
/// **'Picked for you (default)'**
String get pickedForYouDefault;
/// No description provided for @popular.
///
/// In en, this message translates to:
/// **'Most popular'**
String get popular;
/// No description provided for @topRated.
///
/// In en, this message translates to:
/// **'Top rated'**
String get topRated;
/// No description provided for @fast.
///
/// In en, this message translates to:
/// **'Fast'**
String get fast;
}
class _AppLocalizationsDelegate

View File

@@ -204,4 +204,16 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get apply => 'Apply';
@override
String get pickedForYouDefault => 'Picked for you (default)';
@override
String get popular => 'Most popular';
@override
String get topRated => 'Top rated';
@override
String get fast => 'Fast';
}

View File

@@ -205,4 +205,16 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get apply => 'Применить';
@override
String get pickedForYouDefault => 'Выбрано для вас (по умолчанию)';
@override
String get popular => 'Самые популярные';
@override
String get topRated => 'Высокий рейтинг';
@override
String get fast => 'Быстро';
}

View File

@@ -54,7 +54,7 @@ class AppLocalizationsUz extends AppLocalizations {
}
@override
String get delivery => 'Yetkazib berish';
String get delivery => 'Yetkazish';
@override
String get pickUp => 'Olib ketish';
@@ -205,4 +205,16 @@ class AppLocalizationsUz extends AppLocalizations {
@override
String get apply => 'Qollash';
@override
String get pickedForYouDefault => 'Siz uchun tanlangan (standart)';
@override
String get popular => 'Eng ommabop';
@override
String get topRated => 'Yuqori reytingli';
@override
String get fast => 'Tezkor';
}

View File

@@ -1,6 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:food_delivery_client/feature/home/presentation/pages/categories_page/categories_page.dart';
import 'package:food_delivery_client/feature/on_boarding/presentation/pages/splash_page/splash_page.dart';
import '../../food_delivery_client.dart';
@@ -22,6 +20,12 @@ class AppRoutes {
path: Routes.categories,
pageBuilder: (context, state) => CupertinoPage(child: CategoriesPage()),
),
GoRoute(
path: Routes.filters,
pageBuilder: (context, state) => CupertinoPage(child: FiltersPage(
homeBloc: state.extra as HomeBloc,
)),
),
],
);
}

View File

@@ -4,5 +4,7 @@ abstract class Routes {
static const String register = '/register';
static const String main = '/main';
static const String categories = '/categories';
static const String filters= '/filters';
}

View File

@@ -42,5 +42,5 @@ abstract class AppIcons {
static const String icVegen = "$baseUrl/ic_vegen.png";
static const String icGlutenFree = "$baseUrl/ic_gluten_free.png";
static const String icAllergyFriendly = "$baseUrl/ic_allergy_friendly.png";
static const String icClock = "$baseUrl/ic_clock.png";
static const String icClock = "$baseUrl/ic_clock.svg";
}

View File

@@ -28,6 +28,13 @@ abstract class AppTextStyles {
fontWeight: FontWeight.w400,
);
static const TextStyle size16Regular = TextStyle(
color: _defaultColor,
fontSize: SizesCons.size_16,
fontFamily: _fontRegular,
fontWeight: FontWeight.w400,
);
static const TextStyle size20Regular = TextStyle(
color: _defaultColor,
fontSize: SizesCons.size_20,