BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import 'package:country_code_picker/country_code_picker.dart';
|
||||
import 'package:customer/constant/const_texts.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';
|
||||
@@ -13,7 +14,7 @@ import '../../controllers/theme_controller.dart';
|
||||
import '../../themes/app_them_data.dart';
|
||||
import '../../themes/round_button_fill.dart';
|
||||
import '../../themes/text_field_widget.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import 'login_screen.dart';
|
||||
import 'mobile_login_screen.dart';
|
||||
|
||||
@@ -45,7 +46,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
ConstTexts.skip.tr(),
|
||||
ConstTexts.skip.tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -78,7 +79,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
ConstTexts.signUpToExplore.tr(),
|
||||
ConstTexts.signUpToExplore.tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 24,
|
||||
color:
|
||||
@@ -93,7 +94,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: TextFieldWidget(
|
||||
title: ConstTexts.firstName.tr(),
|
||||
title: ConstTexts.firstName.tr,
|
||||
hintText: "Abdusalom",
|
||||
controller: controller.firstNameController.value,
|
||||
),
|
||||
@@ -101,7 +102,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: TextFieldWidget(
|
||||
title: ConstTexts.lastName.tr(),
|
||||
title: ConstTexts.lastName.tr,
|
||||
hintText: "G'ayratov",
|
||||
controller: controller.lastNameController.value,
|
||||
),
|
||||
@@ -110,15 +111,15 @@ class SignUpScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 15),
|
||||
TextFieldWidget(
|
||||
title: ConstTexts.emailAddress.tr(),
|
||||
title: ConstTexts.emailAddress.tr,
|
||||
hintText: "abdusalom@gmail.com",
|
||||
controller: controller.emailController.value,
|
||||
focusNode: controller.emailFocusNode,
|
||||
),
|
||||
const SizedBox(height: 15),
|
||||
TextFieldWidget(
|
||||
title: ConstTexts.mobileNumber.tr(),
|
||||
hintText: ConstTexts.enterMobileNumber.tr(),
|
||||
title: ConstTexts.mobileNumber.tr,
|
||||
hintText: ConstTexts.enterMobileNumber.tr,
|
||||
enable:
|
||||
controller.type.value == "mobileNumber"
|
||||
? false
|
||||
@@ -195,8 +196,8 @@ class SignUpScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 15),
|
||||
TextFieldWidget(
|
||||
title: ConstTexts.password.tr(),
|
||||
hintText: ConstTexts.enterPassword.tr(),
|
||||
title: ConstTexts.password.tr,
|
||||
hintText: ConstTexts.enterPassword.tr,
|
||||
controller: controller.passwordController.value,
|
||||
obscureText: controller.passwordVisible.value,
|
||||
focusNode: controller.passwordFocusNode,
|
||||
@@ -232,8 +233,8 @@ class SignUpScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 15),
|
||||
TextFieldWidget(
|
||||
title: ConstTexts.confirmPassword.tr(),
|
||||
hintText: ConstTexts.enterConfirmPassword.tr(),
|
||||
title: ConstTexts.confirmPassword.tr,
|
||||
hintText: ConstTexts.enterConfirmPassword.tr,
|
||||
controller: controller.confirmPasswordController.value,
|
||||
obscureText: controller.conformPasswordVisible.value,
|
||||
suffix: Padding(
|
||||
@@ -268,14 +269,14 @@ class SignUpScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 15),
|
||||
TextFieldWidget(
|
||||
title: ConstTexts.referralCode.tr(),
|
||||
hintText: ConstTexts.enterReferralCode.tr(),
|
||||
title: ConstTexts.referralCode.tr,
|
||||
hintText: ConstTexts.enterReferralCode.tr,
|
||||
controller: controller.referralController.value,
|
||||
),
|
||||
const SizedBox(height: 40),
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: ConstTexts.signUp.tr(),
|
||||
title: ConstTexts.signUp.tr,
|
||||
onPress: () => controller.signUp(),
|
||||
color:
|
||||
isDark
|
||||
@@ -300,7 +301,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
Text(
|
||||
ConstTexts.orContinueWith.tr(),
|
||||
ConstTexts.orContinueWith.tr,
|
||||
style: AppThemeData.regularTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -322,7 +323,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
const SizedBox(height: 25),
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: ConstTexts.mobileNumber.tr(),
|
||||
title: ConstTexts.mobileNumber.tr,
|
||||
onPress: () => Get.to(() => const MobileLoginScreen()),
|
||||
isRight: false,
|
||||
isCenter: true,
|
||||
@@ -347,7 +348,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: ConstTexts.alreadyHaveAccount.tr(),
|
||||
text: ConstTexts.alreadyHaveAccount.tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -356,7 +357,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: ConstTexts.login.tr(),
|
||||
text: ConstTexts.login.tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color: AppThemeData.ecommerce300,
|
||||
decoration: TextDecoration.underline,
|
||||
@@ -366,7 +367,7 @@ class SignUpScreen extends StatelessWidget {
|
||||
recognizer:
|
||||
TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
Get.offAll(() => const LoginScreen());
|
||||
Get.offAll(LoginScreen());
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user