BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -3,7 +3,8 @@ import 'dart:io';
|
||||
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_screenutil/flutter_screenutil.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 'forgot_password_screen.dart';
|
||||
import 'mobile_login_screen.dart';
|
||||
|
||||
@@ -38,7 +39,7 @@ class LoginScreen extends StatelessWidget {
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
ConstTexts.skip.tr(),
|
||||
ConstTexts.skip.tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -72,7 +73,7 @@ class LoginScreen extends StatelessWidget {
|
||||
children: [
|
||||
const SizedBox(height: 20),
|
||||
Text(
|
||||
ConstTexts.loginToExplore.tr(),
|
||||
ConstTexts.loginToExplore.tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 24,
|
||||
color:
|
||||
@@ -83,15 +84,15 @@ class LoginScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
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.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,
|
||||
@@ -133,7 +134,7 @@ class LoginScreen extends StatelessWidget {
|
||||
() => const ForgotPasswordScreen(),
|
||||
),
|
||||
child: Text(
|
||||
ConstTexts.forgotPassword.tr(),
|
||||
ConstTexts.forgotPassword.tr,
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
color: AppThemeData.info400,
|
||||
),
|
||||
@@ -143,7 +144,7 @@ class LoginScreen extends StatelessWidget {
|
||||
const SizedBox(height: 20),
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: ConstTexts.login.tr(),
|
||||
title: ConstTexts.login.tr,
|
||||
onPress: controller.loginWithEmail,
|
||||
color:
|
||||
isDark
|
||||
@@ -168,7 +169,7 @@ class LoginScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
Text(
|
||||
ConstTexts.orContinueWith.tr(),
|
||||
ConstTexts.orContinueWith.tr,
|
||||
style: AppThemeData.regularTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -192,7 +193,7 @@ class LoginScreen 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,
|
||||
@@ -218,7 +219,7 @@ class LoginScreen extends StatelessWidget {
|
||||
Expanded(
|
||||
child: RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: ConstTexts.withGoogle.tr(),
|
||||
title: ConstTexts.withGoogle.tr,
|
||||
textColor:
|
||||
isDark
|
||||
? AppThemeData.grey100
|
||||
@@ -242,7 +243,7 @@ class LoginScreen extends StatelessWidget {
|
||||
? Expanded(
|
||||
child: RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: ConstTexts.withApple.tr(),
|
||||
title: ConstTexts.withApple.tr,
|
||||
isCenter: true,
|
||||
textColor:
|
||||
isDark
|
||||
@@ -273,7 +274,7 @@ class LoginScreen extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: "${ConstTexts.dontHaveAccount.tr()} ",
|
||||
text: "${ConstTexts.dontHaveAccount.tr} ",
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -282,7 +283,7 @@ class LoginScreen extends StatelessWidget {
|
||||
),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: ConstTexts.signUp.tr(),
|
||||
text: ConstTexts.signUp.tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color: AppThemeData.ecommerce300,
|
||||
decoration: TextDecoration.underline,
|
||||
@@ -290,7 +291,7 @@ class LoginScreen extends StatelessWidget {
|
||||
recognizer:
|
||||
TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
Get.offAll(() => const SignUpScreen());
|
||||
Get.offAll(SignUpScreen());
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user