feat:register page ui done

This commit is contained in:
jahongireshonqulov
2025-10-29 15:16:44 +05:00
parent 2ed2c430c0
commit ece15635eb
18 changed files with 708 additions and 241 deletions

View File

@@ -63,7 +63,8 @@ import 'app_localizations_uz.dart';
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
/// property.
abstract class AppLocalizations {
AppLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());
AppLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
final String localeName;
@@ -71,7 +72,8 @@ abstract class AppLocalizations {
return Localizations.of<AppLocalizations>(context, AppLocalizations);
}
static const LocalizationsDelegate<AppLocalizations> delegate = _AppLocalizationsDelegate();
static const LocalizationsDelegate<AppLocalizations> delegate =
_AppLocalizationsDelegate();
/// A list of this localizations delegate along with the default localizations
/// delegates.
@@ -83,18 +85,19 @@ abstract class AppLocalizations {
/// 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,
];
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')
Locale('uz'),
];
/// No description provided for @useYourTAxiAccount.
@@ -787,11 +790,11 @@ abstract class AppLocalizations {
/// **'Forgot password'**
String get forgot_password;
/// No description provided for @continue.
/// No description provided for @continue_str.
///
/// In en, this message translates to:
/// **'Continue'**
String get Continue;
String get continue_str;
/// No description provided for @dont_have_account.
///
@@ -804,9 +807,64 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'SignUp'**
String get sign_up;
/// No description provided for @field_cannot_be_empty.
///
/// In en, this message translates to:
/// **'This field cannot be empty'**
String get field_cannot_be_empty;
/// No description provided for @password_too_short.
///
/// In en, this message translates to:
/// **'Password must be at least 6 characters long'**
String get password_too_short;
/// No description provided for @invalid_phone_format.
///
/// In en, this message translates to:
/// **'Invalid phone number format'**
String get invalid_phone_format;
/// No description provided for @first_name.
///
/// In en, this message translates to:
/// **'First name'**
String get first_name;
/// No description provided for @enter_first_name.
///
/// In en, this message translates to:
/// **'Enter first name'**
String get enter_first_name;
/// No description provided for @repeat_password.
///
/// In en, this message translates to:
/// **'Repeat password'**
String get repeat_password;
/// No description provided for @enter_repeat_password.
///
/// In en, this message translates to:
/// **'Enter repeat password'**
String get enter_repeat_password;
/// No description provided for @already_has_account.
///
/// In en, this message translates to:
/// **'Already have an account?'**
String get already_has_account;
/// No description provided for @unexpected_error.
///
/// In en, this message translates to:
/// **'Unexpected error'**
String get unexpected_error;
}
class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
class _AppLocalizationsDelegate
extends LocalizationsDelegate<AppLocalizations> {
const _AppLocalizationsDelegate();
@override
@@ -815,26 +873,28 @@ class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations>
}
@override
bool isSupported(Locale locale) => <String>['en', 'ru', 'uz'].contains(locale.languageCode);
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();
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.'
'that was used.',
);
}

View File

@@ -21,7 +21,8 @@ class AppLocalizationsEn extends AppLocalizations {
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.';
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';
@@ -238,7 +239,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get addItemsStartBasket => 'Add items to start a basket';
@override
String get basketHint => 'Once you add items from a restaurant or store, your basket will appear here.';
String get basketHint =>
'Once you add items from a restaurant or store, your basket will appear here.';
@override
String get startShopping => 'Start Shopping';
@@ -364,11 +366,39 @@ class AppLocalizationsEn extends AppLocalizations {
String get forgot_password => 'Forgot password';
@override
String get Continue => 'Continue';
String get continue_str => 'Continue';
@override
String get dont_have_account => 'Don\'t have an account?';
@override
String get sign_up => 'SignUp';
@override
String get field_cannot_be_empty => 'This field cannot be empty';
@override
String get password_too_short =>
'Password must be at least 6 characters long';
@override
String get invalid_phone_format => 'Invalid phone number format';
@override
String get first_name => 'First name';
@override
String get enter_first_name => 'Enter first name';
@override
String get repeat_password => 'Repeat password';
@override
String get enter_repeat_password => 'Enter repeat password';
@override
String get already_has_account => 'Already have an account?';
@override
String get unexpected_error => 'Unexpected error';
}

View File

@@ -9,7 +9,8 @@ class AppLocalizationsRu extends AppLocalizations {
AppLocalizationsRu([String locale = 'ru']) : super(locale);
@override
String get useYourTAxiAccount => 'Используйте свой аккаунт Uber, чтобы начать';
String get useYourTAxiAccount =>
'Используйте свой аккаунт Uber, чтобы начать';
@override
String get enterYourMobileNumber => 'Введите свой номер телефона';
@@ -21,7 +22,8 @@ class AppLocalizationsRu extends AppLocalizations {
String get next => 'Далее';
@override
String get contestToGetCallAndSms => 'Продолжая, вы соглашаетесь получать звонки, сообщения WhatsApp или SMS, включая автоматические, от Uber и его партнеров на указанный номер.';
String get contestToGetCallAndSms =>
'Продолжая, вы соглашаетесь получать звонки, сообщения WhatsApp или SMS, включая автоматические, от Uber и его партнеров на указанный номер.';
@override
String get continueWithGoogle => 'Продолжить через Google';
@@ -238,7 +240,8 @@ class AppLocalizationsRu extends AppLocalizations {
String get addItemsStartBasket => 'Добавьте товары, чтобы создать корзину';
@override
String get basketHint => 'Когда вы добавите товары из ресторана или магазина, ваша корзина появится здесь.';
String get basketHint =>
'Когда вы добавите товары из ресторана или магазина, ваша корзина появится здесь.';
@override
String get startShopping => 'Начать покупки';
@@ -346,29 +349,56 @@ class AppLocalizationsRu extends AppLocalizations {
String get language => 'Язык';
@override
String get login => 'Login';
String get login => 'Вход';
@override
String get phone_number => 'Phone number';
String get phone_number => 'Номер телефона';
@override
String get enter_phone_number => 'Enter phone number';
String get enter_phone_number => 'Введите номер телефона';
@override
String get password => 'Password';
String get password => 'Пароль';
@override
String get enter_password => 'Enter password';
String get enter_password => 'Введите пароль';
@override
String get forgot_password => 'Forgot password';
String get forgot_password => 'Забыли пароль';
@override
String get Continue => 'Continue';
String get continue_str => 'Продолжить';
@override
String get dont_have_account => 'Don\'t have an account?';
String get dont_have_account => 'У вас нет аккаунта?';
@override
String get sign_up => 'SignUp';
String get sign_up => 'Зарегистрироваться';
@override
String get field_cannot_be_empty => 'Это поле не может быть пустым';
@override
String get password_too_short => 'Пароль не может быть короче 6 символов';
@override
String get invalid_phone_format => 'Неверный формат номера телефона';
@override
String get first_name => 'Имя';
@override
String get enter_first_name => 'Введите имя';
@override
String get repeat_password => 'Повторите пароль';
@override
String get enter_repeat_password => 'Введите пароль ещё раз';
@override
String get already_has_account => 'Уже есть аккаунт?';
@override
String get unexpected_error => 'Неожиданная ошибка';
}

View File

@@ -9,7 +9,8 @@ class AppLocalizationsUz extends AppLocalizations {
AppLocalizationsUz([String locale = 'uz']) : super(locale);
@override
String get useYourTAxiAccount => 'Boshlash uchun Uber hisobingizdan foydalaning';
String get useYourTAxiAccount =>
'Boshlash uchun Uber hisobingizdan foydalaning';
@override
String get enterYourMobileNumber => 'Telefon raqamingizni kiriting';
@@ -21,7 +22,8 @@ class AppLocalizationsUz extends AppLocalizations {
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.';
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';
@@ -238,7 +240,8 @@ class AppLocalizationsUz extends AppLocalizations {
String get addItemsStartBasket => 'Savatni boshlash uchun mahsulot qoshing';
@override
String get basketHint => 'Restorandan yoki do\'kondan mahsulot qoshsangiz, savatingiz shu yerda paydo boladi.';
String get basketHint =>
'Restorandan yoki do\'kondan mahsulot qoshsangiz, savatingiz shu yerda paydo boladi.';
@override
String get startShopping => 'Xaridni boshlash';
@@ -346,29 +349,57 @@ class AppLocalizationsUz extends AppLocalizations {
String get language => 'Til';
@override
String get login => 'Login';
String get login => 'Kirish';
@override
String get phone_number => 'Phone number';
String get phone_number => 'Telefon raqami';
@override
String get enter_phone_number => 'Enter phone number';
String get enter_phone_number => 'Telefon raqamingizni kiriting';
@override
String get password => 'Password';
String get password => 'Parol';
@override
String get enter_password => 'Enter password';
String get enter_password => 'Parolni kiriting';
@override
String get forgot_password => 'Forgot password';
String get forgot_password => 'Parolni unutdingizmi';
@override
String get Continue => 'Continue';
String get continue_str => 'Davom etish';
@override
String get dont_have_account => 'Don\'t have an account?';
String get dont_have_account => 'Hisobingiz yoqmi?';
@override
String get sign_up => 'SignUp';
String get sign_up => 'Royxatdan otish';
@override
String get field_cannot_be_empty => 'Bu maydon bo\'sh bo\'lishi mumkin emas';
@override
String get password_too_short =>
'Parol 6 ta belgidan kam bo\'lishi mumkin emas';
@override
String get invalid_phone_format => 'Noto\'g\'ri telefon raqam formati';
@override
String get first_name => 'Ism';
@override
String get enter_first_name => 'Ismingizni kiriting';
@override
String get repeat_password => 'Parolni takrorlang';
@override
String get enter_repeat_password => 'Parolni qayta kiriting';
@override
String get already_has_account => 'Akkountingiz bormi?';
@override
String get unexpected_error => 'Kutilmagan xatolik';
}