BASE: Switch From EasyLocalization To GetX Localization.

This commit is contained in:
2025-12-04 16:56:39 +05:00
parent 157545f1c0
commit bf1d07a048
218 changed files with 2535 additions and 2313 deletions

View File

@@ -1,10 +1,11 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/screen_ui/auth_screens/sign_up_screen.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:customer/utils/app_router.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import 'package:pin_code_fields/pin_code_fields.dart';
import '../../constant/assets.dart';
import '../../controllers/otp_verification_controller.dart';
@@ -51,7 +52,7 @@ class OtpVerificationScreen extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Text(
ConstTexts.skip.tr(),
ConstTexts.skip.tr,
style: AppThemeData.mediumTextStyle(
color:
isDark
@@ -87,7 +88,7 @@ class OtpVerificationScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"${ConstTexts.enterOtpSent.tr()} ${controller.countryCode} ${controller.maskPhoneNumber(controller.phoneNumber.value)}",
"${ConstTexts.enterOtpSent.tr} ${controller.countryCode} ${controller.maskPhoneNumber(controller.phoneNumber.value)}",
style: AppThemeData.boldTextStyle(
fontSize: 24,
color:
@@ -165,7 +166,7 @@ class OtpVerificationScreen extends StatelessWidget {
controller.sendOTP();
},
child: Text(
ConstTexts.resendOTP.tr(),
ConstTexts.resendOTP.tr,
style: AppThemeData.semiBoldTextStyle(
color: AppThemeData.info400,
fontSize: 16,
@@ -180,7 +181,7 @@ class OtpVerificationScreen extends StatelessWidget {
/// Verify Button
RoundedButtonFill(
borderRadius: 10.r,
title: ConstTexts.verify.tr(),
title: ConstTexts.verify.tr,
onPress: controller.verifyOtp,
color:
isDark
@@ -200,7 +201,7 @@ class OtpVerificationScreen extends StatelessWidget {
child: Center(
child: Text.rich(
TextSpan(
text: "${ConstTexts.dontHaveAccount.tr()} ",
text: "${ConstTexts.dontHaveAccount.tr} ",
style: AppThemeData.mediumTextStyle(
color:
isDark
@@ -209,17 +210,14 @@ class OtpVerificationScreen extends StatelessWidget {
),
children: [
TextSpan(
text: ConstTexts.signUp.tr(),
text: ConstTexts.signUp.tr,
style: AppThemeData.mediumTextStyle(
color: AppThemeData.ecommerce300,
decoration: TextDecoration.underline,
),
recognizer:
TapGestureRecognizer()
..onTap =
() => Get.offAll(
() => const SignUpScreen(),
),
..onTap = () => Get.offAll(SignUpScreen()),
),
],
),