feat:browse page ui done

This commit is contained in:
jahongireshonqulov
2025-10-25 15:29:38 +05:00
parent 33da49df6c
commit 57af573b6f
19 changed files with 513 additions and 19 deletions

View File

@@ -10,6 +10,9 @@ abstract class AppLocaleKeys {
static const String imageUrl =
"https://xsznseejebbai1lj.public.blob.vercel-storage.com/homepage/hero/hero-1.webp";
static const String foodImageUrl =
"https://www.precisionorthomd.com/wp-content/uploads/2023/10/percision-blog-header-junk-food-102323.jpg";
static const String lorem = '''Lorem Ipsum is simply dummy text of the
printing and typesetting industry. Lorem Ipsum
has been the industry's standard dummy text ever

View File

@@ -427,7 +427,7 @@ abstract class AppLocalizations {
/// No description provided for @bestOverall.
///
/// In en, this message translates to:
/// **'Best overall'**
/// **'Best Overall'**
String get bestOverall;
/// No description provided for @priceRange.
@@ -555,6 +555,102 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Orders'**
String get orders;
/// No description provided for @recentSearches.
///
/// In en, this message translates to:
/// **'Recent searches'**
String get recentSearches;
/// No description provided for @cafe.
///
/// In en, this message translates to:
/// **'Cafe'**
String get cafe;
/// No description provided for @irish.
///
/// In en, this message translates to:
/// **'Irish'**
String get irish;
/// No description provided for @topCategories.
///
/// In en, this message translates to:
/// **'Top Categories'**
String get topCategories;
/// No description provided for @breakfastAndBrunch.
///
/// In en, this message translates to:
/// **'Breakfast and Brunch'**
String get breakfastAndBrunch;
/// No description provided for @coffeeAndTea.
///
/// In en, this message translates to:
/// **'Coffee and Tea'**
String get coffeeAndTea;
/// No description provided for @latestDeals.
///
/// In en, this message translates to:
/// **'Latest Deals'**
String get latestDeals;
/// No description provided for @restaurantRewards.
///
/// In en, this message translates to:
/// **'Restaurant Rewards'**
String get restaurantRewards;
/// No description provided for @nationwideShipping.
///
/// In en, this message translates to:
/// **'Nationwide Shipping'**
String get nationwideShipping;
/// No description provided for @mexican.
///
/// In en, this message translates to:
/// **'Mexican'**
String get mexican;
/// No description provided for @fastFood.
///
/// In en, this message translates to:
/// **'Fast Food'**
String get fastFood;
/// No description provided for @healthy.
///
/// In en, this message translates to:
/// **'Healthy'**
String get healthy;
/// No description provided for @pizza.
///
/// In en, this message translates to:
/// **'Pizza'**
String get pizza;
/// No description provided for @sandwich.
///
/// In en, this message translates to:
/// **'Sandwich'**
String get sandwich;
/// No description provided for @bakery.
///
/// In en, this message translates to:
/// **'Bakery'**
String get bakery;
/// No description provided for @categoriesShort.
///
/// In en, this message translates to:
/// **'Food, shopping, drinks, etc.'**
String get categoriesShort;
}
class _AppLocalizationsDelegate

View File

@@ -178,7 +178,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get deals => 'Deals';
@override
String get bestOverall => 'Best overall';
String get bestOverall => 'Best Overall';
@override
String get priceRange => 'Price range';
@@ -247,4 +247,52 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get orders => 'Orders';
@override
String get recentSearches => 'Recent searches';
@override
String get cafe => 'Cafe';
@override
String get irish => 'Irish';
@override
String get topCategories => 'Top Categories';
@override
String get breakfastAndBrunch => 'Breakfast and Brunch';
@override
String get coffeeAndTea => 'Coffee and Tea';
@override
String get latestDeals => 'Latest Deals';
@override
String get restaurantRewards => 'Restaurant Rewards';
@override
String get nationwideShipping => 'Nationwide Shipping';
@override
String get mexican => 'Mexican';
@override
String get fastFood => 'Fast Food';
@override
String get healthy => 'Healthy';
@override
String get pizza => 'Pizza';
@override
String get sandwich => 'Sandwich';
@override
String get bakery => 'Bakery';
@override
String get categoriesShort => 'Food, shopping, drinks, etc.';
}

View File

@@ -90,7 +90,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get takeout => 'На вынос';
@override
String get asian => 'Азиатская';
String get asian => 'Азиатская кухня';
@override
String get iceCream => 'Мороженое';
@@ -105,7 +105,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get caribbean => 'Карибская';
@override
String get indian => 'Индийская';
String get indian => 'Индийская кухня';
@override
String get french => 'Французская';
@@ -120,7 +120,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get ride => 'Поездка';
@override
String get chinese => 'Китайская';
String get chinese => 'Китайская кухня';
@override
String get dessert => 'Десерт';
@@ -179,7 +179,7 @@ class AppLocalizationsRu extends AppLocalizations {
String get deals => 'Скидки';
@override
String get bestOverall => 'Лучший выбор';
String get bestOverall => 'Лучшие варианты';
@override
String get priceRange => 'Диапазон цен';
@@ -248,4 +248,52 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get orders => 'Заказы';
@override
String get recentSearches => 'Недавние запросы';
@override
String get cafe => 'Кафе';
@override
String get irish => 'Ирландская кухня';
@override
String get topCategories => 'Популярные категории';
@override
String get breakfastAndBrunch => 'Завтрак и бранч';
@override
String get coffeeAndTea => 'Кофе и чай';
@override
String get latestDeals => 'Новые предложения';
@override
String get restaurantRewards => 'Ресторанные бонусы';
@override
String get nationwideShipping => 'Доставка по всей стране';
@override
String get mexican => 'Мексиканская кухня';
@override
String get fastFood => 'Фастфуд';
@override
String get healthy => 'Здоровая еда';
@override
String get pizza => 'Пицца';
@override
String get sandwich => 'Сэндвич';
@override
String get bakery => 'Пекарня';
@override
String get categoriesShort => 'Еда, покупки, напитки и т.д.';
}

View File

@@ -90,7 +90,7 @@ class AppLocalizationsUz extends AppLocalizations {
String get takeout => 'Olib ketish';
@override
String get asian => 'Osiyo';
String get asian => 'Osiyo taomlari';
@override
String get iceCream => 'Muzqaymoq';
@@ -105,7 +105,7 @@ class AppLocalizationsUz extends AppLocalizations {
String get caribbean => 'Karib';
@override
String get indian => 'Hind';
String get indian => 'Hind taomlari';
@override
String get french => 'Fransuz';
@@ -120,7 +120,7 @@ class AppLocalizationsUz extends AppLocalizations {
String get ride => 'Yol';
@override
String get chinese => 'Xitoy';
String get chinese => 'Xitoy taomlari';
@override
String get dessert => 'Desert';
@@ -179,7 +179,7 @@ class AppLocalizationsUz extends AppLocalizations {
String get deals => 'Aksiyalar';
@override
String get bestOverall => 'Eng yaxshisi';
String get bestOverall => 'Eng yaxshilari';
@override
String get priceRange => 'Narx oraligi';
@@ -248,4 +248,52 @@ class AppLocalizationsUz extends AppLocalizations {
@override
String get orders => 'Buyurtmalar';
@override
String get recentSearches => 'Yaqinda qidirilganlar';
@override
String get cafe => 'Kafe';
@override
String get irish => 'Irlandcha';
@override
String get topCategories => 'Eng ommabop toifalar';
@override
String get breakfastAndBrunch => 'Nonushta va bransh';
@override
String get coffeeAndTea => 'Qahva va choy';
@override
String get latestDeals => 'Yangi chegirmalar';
@override
String get restaurantRewards => 'Restoran mukofotlari';
@override
String get nationwideShipping => 'Butun mamlakat boylab yetkazib berish';
@override
String get mexican => 'Meksika taomlari';
@override
String get fastFood => 'Tezkor ovqatlar';
@override
String get healthy => 'Soglom ovqatlar';
@override
String get pizza => 'Pitsa';
@override
String get sandwich => 'Sendvich';
@override
String get bakery => 'Qandolatxona';
@override
String get categoriesShort => 'Ovqat, xaridlar, ichimliklar va boshqalar.';
}

View File

@@ -10,7 +10,6 @@ class AppRoutes {
final GoRouter router = GoRouter(
navigatorKey: navigatorKey,
initialLocation: Routes.splash,
routes: [
GoRoute(path: Routes.splash, builder: (context, state) => SplashPage()),
GoRoute(
@@ -33,6 +32,10 @@ class AppRoutes {
child: RestaurantsByCategoryPage(categoryName: state.extra as String),
),
),
GoRoute(
path: Routes.browse,
pageBuilder: (context, state) => CupertinoPage(child: BrowsePage()),
),
],
);
}

View File

@@ -5,5 +5,6 @@ abstract class Routes {
static const String main = '/main';
static const String categories = '/categories';
static const String filters = '/filters';
static const String browse = '/browse';
static const String restaurantsByCategory = '/restaurants-by-category';
}

View File

@@ -22,4 +22,7 @@ abstract class AppColors {
static const Color c545454 = Color(0xFF545454);
static const Color cEFF3FE = Color(0xFFEFF3FE);
static const Color c05A357 = Color(0xFF05A357);
static const Color cE8E8E8 = Color(0xFFE8E8E8);
static const Color c660000 = Color(0x66000000);
}

View File

@@ -77,6 +77,13 @@ abstract class AppTextStyles {
fontWeight: FontWeight.w500,
);
static const TextStyle size24Medium = TextStyle(
color: _defaultColor,
fontSize: SizesCons.size_24,
fontFamily: _fontMedium,
fontWeight: FontWeight.w500,
);
static const TextStyle size16Bold= TextStyle(
color: _defaultColor,
fontSize: SizesCons.size_16,

View File

@@ -38,6 +38,9 @@ abstract class AppUtils {
static const BorderRadius kBorderRadius14 = BorderRadius.all(
Radius.circular(14),
);
static const BorderRadius kBorderRadius15 = BorderRadius.all(
Radius.circular(15),
);
static const BorderRadius kBorderRadius16 = BorderRadius.all(
Radius.circular(16),
);
@@ -81,6 +84,10 @@ abstract class AppUtils {
static const BorderRadius kBorderRadius40 = BorderRadius.all(
Radius.circular(40),
);
static const BorderRadius kBorderRadiusTop15 = BorderRadius.only(
topLeft: kRadius15,
topRight: kRadius15,
);
static const BorderRadius kBorderRadiusTop20 = BorderRadius.only(
topLeft: kRadius20,
topRight: kRadius20,
@@ -93,4 +100,8 @@ abstract class AppUtils {
bottomRight: kRadius15,
topRight: kRadius15,
);
static const BorderRadius kBorderRadiusBottom15 = BorderRadius.only(
bottomLeft: kRadius15,
bottomRight: kRadius15,
);
}