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