feat:verify phone number page ui done

This commit is contained in:
jahongireshonqulov
2025-10-29 15:51:55 +05:00
parent a2fbd9f90d
commit 5e4d362039
17 changed files with 264 additions and 6 deletions

View File

@@ -861,6 +861,12 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Unexpected error'**
String get unexpected_error;
/// No description provided for @consent_message.
///
/// In en, this message translates to:
/// **'By proceeding, you consent to get calls or SMS messages, including by automated means, from {appName} and its affiliates to the number provided.'**
String consent_message(String appName);
}
class _AppLocalizationsDelegate

View File

@@ -401,4 +401,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get unexpected_error => 'Unexpected error';
@override
String consent_message(String appName) {
return 'By proceeding, you consent to get calls or SMS messages, including by automated means, from $appName and its affiliates to the number provided.';
}
}

View File

@@ -401,4 +401,9 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get unexpected_error => 'Неожиданная ошибка';
@override
String consent_message(String appName) {
return 'Продолжая, вы соглашаетесь получать звонки или SMS-сообщения, включая автоматические, от $appName и его партнёров на указанный номер.';
}
}

View File

@@ -402,4 +402,9 @@ class AppLocalizationsUz extends AppLocalizations {
@override
String get unexpected_error => 'Kutilmagan xatolik';
@override
String consent_message(String appName) {
return 'Davom etish orqali siz $appName va uning hamkorlaridan siz kiritgan raqamga, shu jumladan avtomatik vositalar orqali, qongiroqlar yoki SMS xabarlar olishingizga rozilik bildirasiz.';
}
}

View File

@@ -2,6 +2,9 @@ import 'package:flutter/cupertino.dart';
import 'package:food_delivery_client/feature/auth/presentation/pages/forgot_password_page/forgot_password_page.dart';
import 'package:food_delivery_client/feature/auth/presentation/pages/login_page/login_page.dart';
import 'package:food_delivery_client/feature/auth/presentation/pages/register_page/register_page.dart';
import 'package:food_delivery_client/feature/auth/presentation/pages/reset_password_page/reset_password_page.dart';
import 'package:food_delivery_client/feature/auth/presentation/pages/verify_otp_code_page/verify_otp_code_page.dart';
import 'package:food_delivery_client/feature/auth/presentation/pages/verify_phone_number_page/verify_phone_page.dart';
import 'package:food_delivery_client/feature/home/presentation/pages/restaurants_by_category_page/restaurants_by_category_page.dart';
import '../../food_delivery_client.dart';
@@ -29,6 +32,25 @@ class AppRoutes {
pageBuilder: (context, state) =>
CupertinoPage(child: ForgotPasswordPage()),
),
GoRoute(
path: Routes.verifyPhoneNumber,
pageBuilder: (context, state) => CupertinoPage(
child: VerifyPhoneNumberPage(isRegister: state.extra as bool),
),
),
GoRoute(
path: Routes.verifyOtpCode,
pageBuilder: (context, state) => CupertinoPage(
child: VerifyOtpCodePage(isRegister: state.extra as bool),
),
),
GoRoute(
path: Routes.resetPassword,
pageBuilder: (context, state) =>
CupertinoPage(child: ResetPasswordPage()),
),
GoRoute(
path: Routes.main,

View File

@@ -8,4 +8,7 @@ abstract class Routes {
static const String browse = '/browse';
static const String forgotPassword = "/forgot-password";
static const String restaurantsByCategory = '/restaurants-by-category';
static const String verifyPhoneNumber = "/verify-phone-number";
static const String verifyOtpCode = "/verify-otp-code";
static const String resetPassword = "/reset-password";
}

View File

@@ -26,5 +26,7 @@ abstract class AppColors {
static const Color c660000 = Color(0x66000000);
static const Color c6A6E7F = Color(0xFF6A6E7F);
static const Color c7F7F7F = Color(0xFF7F7F7F);
static const Color c888888 = Color(0xFF888888);
}

View File

@@ -49,6 +49,12 @@ abstract class AppTextStyles {
fontWeight: FontWeight.w500,
);
static const TextStyle size12Medium = TextStyle(
color: _defaultColor,
fontSize: SizesCons.size_12,
fontFamily: _fontMedium,
fontWeight: FontWeight.w500,
);
static const TextStyle size15Medium = TextStyle(
color: _defaultColor,
fontSize: SizesCons.size_15,