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

@@ -2,12 +2,13 @@ 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:customer/utils/app_router.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import '../../constant/assets.dart';
import '../../constant/constant.dart';
import '../../controllers/mobile_login_controller.dart';
@@ -55,7 +56,7 @@ class MobileLoginScreen extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Text(
ConstTexts.skip.tr(),
ConstTexts.skip.tr,
style: AppThemeData.mediumTextStyle(
color:
isDark
@@ -91,7 +92,7 @@ class MobileLoginScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
ConstTexts.useYourMobileNumber.tr(),
ConstTexts.useYourMobileNumber.tr,
style: AppThemeData.boldTextStyle(
fontSize: 24,
color:
@@ -102,8 +103,8 @@ class MobileLoginScreen extends StatelessWidget {
),
const SizedBox(height: 25),
TextFieldWidget(
title: ConstTexts.mobileNumber.tr(),
hintText: ConstTexts.enterMobileNumber.tr(),
title: ConstTexts.mobileNumber.tr,
hintText: ConstTexts.enterMobileNumber.tr,
controller: controller.mobileController.value,
textInputType:
const TextInputType.numberWithOptions(
@@ -182,7 +183,7 @@ class MobileLoginScreen extends StatelessWidget {
const SizedBox(height: 30),
RoundedButtonFill(
borderRadius: 10.r,
title: ConstTexts.sendCode.tr(),
title: ConstTexts.sendCode.tr,
onPress: controller.sendOtp,
color:
isDark
@@ -207,7 +208,7 @@ class MobileLoginScreen extends StatelessWidget {
),
const SizedBox(width: 15),
Text(
ConstTexts.orContinueWith.tr(),
ConstTexts.orContinueWith.tr,
style: AppThemeData.regularTextStyle(
color:
isDark
@@ -229,7 +230,7 @@ class MobileLoginScreen extends StatelessWidget {
const SizedBox(height: 25),
RoundedButtonFill(
borderRadius: 10.r,
title: ConstTexts.emailAddress.tr(),
title: ConstTexts.emailAddress.tr,
onPress: () => Get.to(() => const SignUpScreen()),
isRight: false,
isCenter: true,
@@ -257,7 +258,7 @@ class MobileLoginScreen extends StatelessWidget {
child: Center(
child: Text.rich(
TextSpan(
text: "${ConstTexts.dontHaveAccount.tr()} ",
text: "${ConstTexts.dontHaveAccount.tr} ",
style: AppThemeData.mediumTextStyle(
color:
isDark
@@ -266,7 +267,7 @@ class MobileLoginScreen extends StatelessWidget {
),
children: [
TextSpan(
text: ConstTexts.signUp.tr(),
text: ConstTexts.signUp.tr,
style: AppThemeData.mediumTextStyle(
color: AppThemeData.ecommerce300,
decoration: TextDecoration.underline,
@@ -276,7 +277,7 @@ class MobileLoginScreen extends StatelessWidget {
recognizer:
TapGestureRecognizer()
..onTap = () {
Get.offAll(() => const SignUpScreen());
Get.offAll(SignUpScreen());
},
),
],