BASE: Imlement Localization In Auth.

This commit is contained in:
2025-12-03 15:25:19 +05:00
parent 2736727592
commit 3e18352abe
24 changed files with 3484 additions and 795 deletions

View File

@@ -1,6 +1,8 @@
import 'package:country_code_picker/country_code_picker.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/screen_ui/auth_screens/sign_up_screen.dart';
import 'package:customer/screen_ui/location_enable_screens/location_permission_screen.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@@ -53,7 +55,7 @@ class MobileLoginScreen extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Text(
"Skip".tr,
ConstTexts.skip.tr(),
style: AppThemeData.mediumTextStyle(
color:
isDark
@@ -89,8 +91,7 @@ class MobileLoginScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Use your mobile number to Log in easily and securely."
.tr,
ConstTexts.useYourMobileNumber.tr(),
style: AppThemeData.boldTextStyle(
fontSize: 24,
color:
@@ -101,8 +102,8 @@ class MobileLoginScreen extends StatelessWidget {
),
const SizedBox(height: 25),
TextFieldWidget(
title: "Mobile Number*".tr,
hintText: "Enter Mobile number".tr,
title: ConstTexts.mobileNumber.tr(),
hintText: ConstTexts.enterMobileNumber.tr(),
controller: controller.mobileController.value,
textInputType:
const TextInputType.numberWithOptions(
@@ -181,7 +182,7 @@ class MobileLoginScreen extends StatelessWidget {
const SizedBox(height: 30),
RoundedButtonFill(
borderRadius: 10.r,
title: "Send Code".tr,
title: ConstTexts.sendCode.tr(),
onPress: controller.sendOtp,
color:
isDark
@@ -206,7 +207,7 @@ class MobileLoginScreen extends StatelessWidget {
),
const SizedBox(width: 15),
Text(
"or continue with".tr,
ConstTexts.orContinueWith.tr(),
style: AppThemeData.regularTextStyle(
color:
isDark
@@ -228,7 +229,7 @@ class MobileLoginScreen extends StatelessWidget {
const SizedBox(height: 25),
RoundedButtonFill(
borderRadius: 10.r,
title: "Email address".tr,
title: ConstTexts.emailAddress.tr(),
onPress: () => Get.to(() => const SignUpScreen()),
isRight: false,
isCenter: true,
@@ -256,7 +257,7 @@ class MobileLoginScreen extends StatelessWidget {
child: Center(
child: Text.rich(
TextSpan(
text: "Didn't have an account?".tr,
text: ConstTexts.dontHaveAccount.tr(),
style: AppThemeData.mediumTextStyle(
color:
isDark
@@ -265,7 +266,7 @@ class MobileLoginScreen extends StatelessWidget {
),
children: [
TextSpan(
text: "Sign up".tr,
text: ConstTexts.signUp.tr(),
style: AppThemeData.mediumTextStyle(
color: AppThemeData.ecommerce300,
decoration: TextDecoration.underline,