Initial commit

This commit is contained in:
jahongireshonqulov
2025-10-23 19:34:54 +05:00
commit 41d8a38471
212 changed files with 8757 additions and 0 deletions

View File

@@ -0,0 +1,366 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:intl/intl.dart' as intl;
import 'app_localizations_en.dart';
import 'app_localizations_ru.dart';
import 'app_localizations_uz.dart';
// ignore_for_file: type=lint
/// Callers can lookup localized strings with an instance of AppLocalizations
/// returned by `AppLocalizations.of(context)`.
///
/// Applications need to include `AppLocalizations.delegate()` in their app's
/// `localizationDelegates` list, and the locales they support in the app's
/// `supportedLocales` list. For example:
///
/// ```dart
/// import 'l10n/app_localizations.dart';
///
/// return MaterialApp(
/// localizationsDelegates: AppLocalizations.localizationsDelegates,
/// supportedLocales: AppLocalizations.supportedLocales,
/// home: MyApplicationHome(),
/// );
/// ```
///
/// ## Update pubspec.yaml
///
/// Please make sure to update your pubspec.yaml to include the following
/// packages:
///
/// ```yaml
/// dependencies:
/// # Internationalization support.
/// flutter_localizations:
/// sdk: flutter
/// intl: any # Use the pinned version from flutter_localizations
///
/// # Rest of dependencies
/// ```
///
/// ## iOS Applications
///
/// iOS applications define key application metadata, including supported
/// locales, in an Info.plist file that is built into the application bundle.
/// To configure the locales supported by your app, youll need to edit this
/// file.
///
/// First, open your projects ios/Runner.xcworkspace Xcode workspace file.
/// Then, in the Project Navigator, open the Info.plist file under the Runner
/// projects Runner folder.
///
/// Next, select the Information Property List item, select Add Item from the
/// Editor menu, then select Localizations from the pop-up menu.
///
/// Select and expand the newly-created Localizations item then, for each
/// locale your application supports, add a new item and select the locale
/// you wish to add from the pop-up menu in the Value field. This list should
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
/// property.
abstract class AppLocalizations {
AppLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
final String localeName;
static AppLocalizations? of(BuildContext context) {
return Localizations.of<AppLocalizations>(context, AppLocalizations);
}
static const LocalizationsDelegate<AppLocalizations> delegate =
_AppLocalizationsDelegate();
/// A list of this localizations delegate along with the default localizations
/// delegates.
///
/// Returns a list of localizations delegates containing this delegate along with
/// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate,
/// and GlobalWidgetsLocalizations.delegate.
///
/// Additional delegates can be added by appending to this list in
/// MaterialApp. This list does not have to be used at all if a custom list
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
Locale('en'),
Locale('ru'),
Locale('uz'),
];
/// No description provided for @useYourTAxiAccount.
///
/// In en, this message translates to:
/// **'Use your uber account to get started'**
String get useYourTAxiAccount;
/// No description provided for @enterYourMobileNumber.
///
/// In en, this message translates to:
/// **'Enter your mobile number'**
String get enterYourMobileNumber;
/// No description provided for @mobileNumber.
///
/// In en, this message translates to:
/// **'Mobile number'**
String get mobileNumber;
/// No description provided for @next.
///
/// In en, this message translates to:
/// **'Next'**
String get next;
/// No description provided for @contestToGetCallAndSms.
///
/// In en, this message translates to:
/// **'By proceeding, you consent to get calls, Whatsapp or SMS messages, including by automated means, from uber and its affiliates to the number provided.'**
String get contestToGetCallAndSms;
/// No description provided for @continueWithGoogle.
///
/// In en, this message translates to:
/// **'Continue with google'**
String get continueWithGoogle;
/// No description provided for @or.
///
/// In en, this message translates to:
/// **'or'**
String get or;
/// No description provided for @welcomeBack.
///
/// In en, this message translates to:
/// **'Welcome back, John'**
String get welcomeBack;
/// No description provided for @pleaseEnterYourPassword.
///
/// In en, this message translates to:
/// **'Please enter your password'**
String get pleaseEnterYourPassword;
/// No description provided for @iHaveForgotPassword.
///
/// In en, this message translates to:
/// **'I\'ve forgotten my password'**
String get iHaveForgotPassword;
/// No description provided for @iCantSignIn.
///
/// In en, this message translates to:
/// **'I cant sign in'**
String get iCantSignIn;
/// No description provided for @enter4DigitCodeSentYou.
///
/// In en, this message translates to:
/// **'Enter the 4-digit code sent to you at {phone}'**
String enter4DigitCodeSentYou(String phone);
/// No description provided for @iHavenRecievedCode.
///
/// In en, this message translates to:
/// **'I havent recieved a code (\${time})'**
String iHavenRecievedCode(String time);
/// No description provided for @delivery.
///
/// In en, this message translates to:
/// **'Delivery'**
String get delivery;
/// No description provided for @pickUp.
///
/// In en, this message translates to:
/// **'Pickup'**
String get pickUp;
/// No description provided for @dineIn.
///
/// In en, this message translates to:
/// **'Dine-in'**
String get dineIn;
/// No description provided for @allCategories.
///
/// In en, this message translates to:
/// **'All categories'**
String get allCategories;
/// No description provided for @convenience.
///
/// In en, this message translates to:
/// **'Convenience'**
String get convenience;
/// No description provided for @alcohol.
///
/// In en, this message translates to:
/// **'Alcohol'**
String get alcohol;
/// No description provided for @petSupplies.
///
/// In en, this message translates to:
/// **'Pet Supplies'**
String get petSupplies;
/// No description provided for @flowers.
///
/// In en, this message translates to:
/// **'Flowers'**
String get flowers;
/// No description provided for @grocery.
///
/// In en, this message translates to:
/// **'Grocery'**
String get grocery;
/// No description provided for @american.
///
/// In en, this message translates to:
/// **'American'**
String get american;
/// No description provided for @speciality.
///
/// In en, this message translates to:
/// **'Speciality'**
String get speciality;
/// No description provided for @takeout.
///
/// In en, this message translates to:
/// **'Takeout'**
String get takeout;
/// No description provided for @asian.
///
/// In en, this message translates to:
/// **'Asian'**
String get asian;
/// No description provided for @iceCream.
///
/// In en, this message translates to:
/// **'Ice Cream'**
String get iceCream;
/// No description provided for @halal.
///
/// In en, this message translates to:
/// **'Halal'**
String get halal;
/// No description provided for @retails.
///
/// In en, this message translates to:
/// **'Retails'**
String get retails;
/// No description provided for @caribbean.
///
/// In en, this message translates to:
/// **'Caribbean'**
String get caribbean;
/// No description provided for @indian.
///
/// In en, this message translates to:
/// **'Indian'**
String get indian;
/// No description provided for @french.
///
/// In en, this message translates to:
/// **'French'**
String get french;
/// No description provided for @fastFoods.
///
/// In en, this message translates to:
/// **'Fast Foods'**
String get fastFoods;
/// No description provided for @burger.
///
/// In en, this message translates to:
/// **'Burger'**
String get burger;
/// No description provided for @ride.
///
/// In en, this message translates to:
/// **'Ride'**
String get ride;
/// No description provided for @chinese.
///
/// In en, this message translates to:
/// **'Chinese'**
String get chinese;
/// No description provided for @dessert.
///
/// In en, this message translates to:
/// **'Dessert'**
String get dessert;
/// No description provided for @more.
///
/// In en, this message translates to:
/// **'More'**
String get more;
}
class _AppLocalizationsDelegate
extends LocalizationsDelegate<AppLocalizations> {
const _AppLocalizationsDelegate();
@override
Future<AppLocalizations> load(Locale locale) {
return SynchronousFuture<AppLocalizations>(lookupAppLocalizations(locale));
}
@override
bool isSupported(Locale locale) =>
<String>['en', 'ru', 'uz'].contains(locale.languageCode);
@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
}
AppLocalizations lookupAppLocalizations(Locale locale) {
// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'en':
return AppLocalizationsEn();
case 'ru':
return AppLocalizationsRu();
case 'uz':
return AppLocalizationsUz();
}
throw FlutterError(
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.',
);
}

View File

@@ -0,0 +1,129 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for English (`en`).
class AppLocalizationsEn extends AppLocalizations {
AppLocalizationsEn([String locale = 'en']) : super(locale);
@override
String get useYourTAxiAccount => 'Use your uber account to get started';
@override
String get enterYourMobileNumber => 'Enter your mobile number';
@override
String get mobileNumber => 'Mobile number';
@override
String get next => 'Next';
@override
String get contestToGetCallAndSms =>
'By proceeding, you consent to get calls, Whatsapp or SMS messages, including by automated means, from uber and its affiliates to the number provided.';
@override
String get continueWithGoogle => 'Continue with google';
@override
String get or => 'or';
@override
String get welcomeBack => 'Welcome back, John';
@override
String get pleaseEnterYourPassword => 'Please enter your password';
@override
String get iHaveForgotPassword => 'I\'ve forgotten my password';
@override
String get iCantSignIn => 'I cant sign in';
@override
String enter4DigitCodeSentYou(String phone) {
return 'Enter the 4-digit code sent to you at $phone';
}
@override
String iHavenRecievedCode(String time) {
return 'I havent recieved a code (\$$time)';
}
@override
String get delivery => 'Delivery';
@override
String get pickUp => 'Pickup';
@override
String get dineIn => 'Dine-in';
@override
String get allCategories => 'All categories';
@override
String get convenience => 'Convenience';
@override
String get alcohol => 'Alcohol';
@override
String get petSupplies => 'Pet Supplies';
@override
String get flowers => 'Flowers';
@override
String get grocery => 'Grocery';
@override
String get american => 'American';
@override
String get speciality => 'Speciality';
@override
String get takeout => 'Takeout';
@override
String get asian => 'Asian';
@override
String get iceCream => 'Ice Cream';
@override
String get halal => 'Halal';
@override
String get retails => 'Retails';
@override
String get caribbean => 'Caribbean';
@override
String get indian => 'Indian';
@override
String get french => 'French';
@override
String get fastFoods => 'Fast Foods';
@override
String get burger => 'Burger';
@override
String get ride => 'Ride';
@override
String get chinese => 'Chinese';
@override
String get dessert => 'Dessert';
@override
String get more => 'More';
}

View File

@@ -0,0 +1,130 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for Russian (`ru`).
class AppLocalizationsRu extends AppLocalizations {
AppLocalizationsRu([String locale = 'ru']) : super(locale);
@override
String get useYourTAxiAccount =>
'Используйте свой аккаунт Uber, чтобы начать';
@override
String get enterYourMobileNumber => 'Введите свой номер телефона';
@override
String get mobileNumber => 'Номер телефона';
@override
String get next => 'Далее';
@override
String get contestToGetCallAndSms =>
'Продолжая, вы соглашаетесь получать звонки, сообщения WhatsApp или SMS, включая автоматические, от Uber и его партнеров на указанный номер.';
@override
String get continueWithGoogle => 'Продолжить через Google';
@override
String get or => 'или';
@override
String get welcomeBack => 'С возвращением, null';
@override
String get pleaseEnterYourPassword => 'Пожалуйста, введите свой пароль';
@override
String get iHaveForgotPassword => 'Я забыл пароль';
@override
String get iCantSignIn => 'Не могу войти в систему';
@override
String enter4DigitCodeSentYou(String phone) {
return 'Введите 4-значный код, отправленный на номер $phone';
}
@override
String iHavenRecievedCode(String time) {
return 'Я не получил код (\$$time)';
}
@override
String get delivery => 'Доставка';
@override
String get pickUp => 'Самовывоз';
@override
String get dineIn => 'На месте';
@override
String get allCategories => 'Все категории';
@override
String get convenience => 'Магазин';
@override
String get alcohol => 'Алкоголь';
@override
String get petSupplies => 'Для питомцев';
@override
String get flowers => 'Цветы';
@override
String get grocery => 'Продукты';
@override
String get american => 'Американская';
@override
String get speciality => 'Особенная';
@override
String get takeout => 'На вынос';
@override
String get asian => 'Азиатская';
@override
String get iceCream => 'Мороженое';
@override
String get halal => 'Халяль';
@override
String get retails => 'Розница';
@override
String get caribbean => 'Карибская';
@override
String get indian => 'Индийская';
@override
String get french => 'Французская';
@override
String get fastFoods => 'Фастфуд';
@override
String get burger => 'Бургер';
@override
String get ride => 'Поездка';
@override
String get chinese => 'Китайская';
@override
String get dessert => 'Десерт';
@override
String get more => 'Ещё';
}

View File

@@ -0,0 +1,130 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for Uzbek (`uz`).
class AppLocalizationsUz extends AppLocalizations {
AppLocalizationsUz([String locale = 'uz']) : super(locale);
@override
String get useYourTAxiAccount =>
'Boshlash uchun Uber hisobingizdan foydalaning';
@override
String get enterYourMobileNumber => 'Telefon raqamingizni kiriting';
@override
String get mobileNumber => 'Telefon raqami';
@override
String get next => 'Keyingi';
@override
String get contestToGetCallAndSms =>
'Davom etish orqali siz Uber va uning hamkorlaridan avtomatlashtirilgan qongiroqlar, WhatsApp yoki SMS xabarlarini olishga rozilik bildirasiz.';
@override
String get continueWithGoogle => 'Google orqali davom etish';
@override
String get or => 'yoki';
@override
String get welcomeBack => 'Xush kelibsiz, null';
@override
String get pleaseEnterYourPassword => 'Iltimos, parolingizni kiriting';
@override
String get iHaveForgotPassword => 'Parolimni unutdim';
@override
String get iCantSignIn => 'Kirishda muammo bor';
@override
String enter4DigitCodeSentYou(String phone) {
return 'Sizga $phone raqamiga yuborilgan 4 xonali kodni kiriting';
}
@override
String iHavenRecievedCode(String time) {
return 'Men hali kodni olmabman (\$$time)';
}
@override
String get delivery => 'Yetkazib berish';
@override
String get pickUp => 'Olib ketish';
@override
String get dineIn => 'Joyida';
@override
String get allCategories => 'Barcha toifalar';
@override
String get convenience => 'Dokon';
@override
String get alcohol => 'Alkogol';
@override
String get petSupplies => 'Uy hayvoni uchun';
@override
String get flowers => 'Gullar';
@override
String get grocery => 'Bozor';
@override
String get american => 'Amerika';
@override
String get speciality => 'Maxsus';
@override
String get takeout => 'Olib ketish';
@override
String get asian => 'Osiyo';
@override
String get iceCream => 'Muzqaymoq';
@override
String get halal => 'Halol';
@override
String get retails => 'Dokonlar';
@override
String get caribbean => 'Karib';
@override
String get indian => 'Hind';
@override
String get french => 'Fransuz';
@override
String get fastFoods => 'Fast-fud';
@override
String get burger => 'Burger';
@override
String get ride => 'Yol';
@override
String get chinese => 'Xitoy';
@override
String get dessert => 'Desert';
@override
String get more => 'Ko\'proq';
}