BASE: Imlement Localization In Auth.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
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:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
@@ -36,7 +38,7 @@ class LoginScreen extends StatelessWidget {
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
"Skip".tr,
|
||||
ConstTexts.skip.tr(),
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -70,8 +72,8 @@ class LoginScreen extends StatelessWidget {
|
||||
children: [
|
||||
const SizedBox(height: 20),
|
||||
Text(
|
||||
"Log in to explore your all in one vendor app favourites and shop effortlessly."
|
||||
.tr,
|
||||
ConstTexts.loginToExplore.tr()
|
||||
,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 24,
|
||||
color:
|
||||
@@ -82,15 +84,15 @@ class LoginScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
TextFieldWidget(
|
||||
title: "Email Address*".tr,
|
||||
hintText: "jerome014@gmail.com",
|
||||
title: ConstTexts.emailAddress.tr(),
|
||||
hintText: "abdusalom@gmail.com",
|
||||
controller: controller.emailController.value,
|
||||
focusNode: controller.emailFocusNode,
|
||||
),
|
||||
const SizedBox(height: 15),
|
||||
TextFieldWidget(
|
||||
title: "Password*".tr,
|
||||
hintText: "Enter password".tr,
|
||||
title: ConstTexts.password.tr(),
|
||||
hintText: ConstTexts.enterPassword.tr(),
|
||||
controller: controller.passwordController.value,
|
||||
obscureText: controller.passwordVisible.value,
|
||||
focusNode: controller.passwordFocusNode,
|
||||
@@ -132,7 +134,7 @@ class LoginScreen extends StatelessWidget {
|
||||
() => const ForgotPasswordScreen(),
|
||||
),
|
||||
child: Text(
|
||||
"Forgot Password".tr,
|
||||
ConstTexts.forgotPassword.tr(),
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
color: AppThemeData.info400,
|
||||
),
|
||||
@@ -142,7 +144,7 @@ class LoginScreen extends StatelessWidget {
|
||||
const SizedBox(height: 20),
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: "Log in".tr,
|
||||
title: ConstTexts.login.tr(),
|
||||
onPress: controller.loginWithEmail,
|
||||
color:
|
||||
isDark
|
||||
@@ -167,7 +169,7 @@ class LoginScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
Text(
|
||||
"or continue with".tr,
|
||||
ConstTexts.orContinueWith.tr(),
|
||||
style: AppThemeData.regularTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -191,7 +193,7 @@ class LoginScreen extends StatelessWidget {
|
||||
const SizedBox(height: 25),
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: "Mobile number".tr,
|
||||
title: ConstTexts.mobileNumber.tr(),
|
||||
onPress:
|
||||
() => Get.to(() => const MobileLoginScreen()),
|
||||
isRight: false,
|
||||
@@ -217,7 +219,7 @@ class LoginScreen extends StatelessWidget {
|
||||
Expanded(
|
||||
child: RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: "with Google".tr,
|
||||
title: ConstTexts.withGoogle.tr(),
|
||||
textColor:
|
||||
isDark
|
||||
? AppThemeData.grey100
|
||||
@@ -241,7 +243,7 @@ class LoginScreen extends StatelessWidget {
|
||||
? Expanded(
|
||||
child: RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: "with Apple".tr,
|
||||
title: ConstTexts.withApple.tr(),
|
||||
isCenter: true,
|
||||
textColor:
|
||||
isDark
|
||||
@@ -272,7 +274,7 @@ class LoginScreen extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: "Didn't have an account?".tr,
|
||||
text: ConstTexts.dontHaveAccount.tr(),
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -281,7 +283,7 @@ class LoginScreen extends StatelessWidget {
|
||||
),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: "Sign up".tr,
|
||||
text: ConstTexts.signUp.tr(),
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color: AppThemeData.ecommerce300,
|
||||
decoration: TextDecoration.underline,
|
||||
|
||||
Reference in New Issue
Block a user