BASE: Implement Localization In Cab Home Screen.
This commit is contained in:
@@ -72,5 +72,10 @@
|
||||
"home": "Home",
|
||||
"myBookings": "My Bookings",
|
||||
"profile": "profile",
|
||||
"wallet": "Wallet"
|
||||
"wallet": "Wallet",
|
||||
"cabServiceType": "Cab Service Type",
|
||||
"everyRideVerified": "Every Ride. Every Driver. Verified.",
|
||||
"allDriversIDCheck": "All drivers go through ID checks and background verification for your safety.",
|
||||
"intercity": "Intercity",
|
||||
"aroundTheCity": "Around the city"
|
||||
}
|
||||
@@ -72,11 +72,11 @@ class ConstTexts {
|
||||
static String myBookings = "myBookings";
|
||||
static String profile = "profile";
|
||||
static String wallet = "wallet";
|
||||
static String failedToCancel = "failedToCancel";
|
||||
static String pleaseWait = "pleaseWait";
|
||||
static String change = "change";
|
||||
static String yourSosRequest = "yourSosRequest";
|
||||
static String yourSosrequestAlreadySubmitted = "yourSosrequestAlreadySubmitted";
|
||||
static String cabServiceType = "cabServiceType";
|
||||
static String everyRideVerified = "everyRideVerified";
|
||||
static String allDriversIDCheck = "allDriversIDCheck";
|
||||
static String intercity = "intercity";
|
||||
static String aroundTheCity = "aroundTheCity";
|
||||
static String payNow = "payNow";
|
||||
static String youDoNothaveSufficientwalletBalance = "youDoNothaveSufficientwalletBalance";
|
||||
static String somethingWentWrong = "somethingWentWrong";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:customer/constant/const_texts.dart';
|
||||
import 'package:customer/constant/constant.dart';
|
||||
import 'package:customer/controllers/cab_home_controller.dart';
|
||||
import 'package:customer/controllers/theme_controller.dart';
|
||||
@@ -5,6 +6,7 @@ import 'package:customer/models/banner_model.dart';
|
||||
import 'package:customer/screen_ui/auth_screens/login_screen.dart';
|
||||
import 'package:customer/themes/app_them_data.dart';
|
||||
import 'package:customer/utils/network_image_widget.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
@@ -50,7 +52,7 @@ class CabHomeScreen extends HookWidget {
|
||||
Get.offAll(const LoginScreen());
|
||||
},
|
||||
child: Text(
|
||||
"Login".tr,
|
||||
ConstTexts.login.tr(),
|
||||
textAlign: TextAlign.center,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
color: AppThemeData.grey900,
|
||||
@@ -97,7 +99,7 @@ class CabHomeScreen extends HookWidget {
|
||||
children: [
|
||||
SizedBox(height: 20),
|
||||
Text(
|
||||
"Cab Service Type",
|
||||
ConstTexts.cabServiceType.tr(),
|
||||
style: AppThemeData.boldTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -121,8 +123,7 @@ class CabHomeScreen extends HookWidget {
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
"Every Ride. Every Driver. Verified."
|
||||
.tr,
|
||||
ConstTexts.everyRideVerified.tr(),
|
||||
style: AppThemeData.boldTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -132,8 +133,8 @@ class CabHomeScreen extends HookWidget {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"All drivers go through ID checks and background verification for your safety."
|
||||
.tr,
|
||||
ConstTexts.allDriversIDCheck
|
||||
.tr(),
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -171,7 +172,7 @@ class CabHomeScreen extends HookWidget {
|
||||
Constant.sectionConstantModel!.rideType == "both" ||
|
||||
Constant.sectionConstantModel!.rideType == "ride"
|
||||
? _cabOptionMaker(
|
||||
title: "По городу",
|
||||
title: ConstTexts.aroundTheCity.tr(),
|
||||
isMain: false,
|
||||
image: "assets/images/taxi_option.png",
|
||||
useGradient: false,
|
||||
@@ -182,7 +183,7 @@ class CabHomeScreen extends HookWidget {
|
||||
)
|
||||
: Expanded(child: SizedBox()),
|
||||
_cabOptionMaker(
|
||||
title: "Межгород",
|
||||
title: ConstTexts.intercity.tr(),
|
||||
isMain: false,
|
||||
useGradient: false,
|
||||
image: "assets/images/outer_city_taxi_option.png",
|
||||
|
||||
Reference in New Issue
Block a user