BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -4,9 +4,10 @@ import 'package:customer/screen_ui/auth_screens/login_screen.dart';
|
||||
import 'package:customer/screen_ui/multi_vendor_service/wallet_screen/wallet_screen.dart';
|
||||
import 'package:customer/screen_ui/rental_service/rental_order_details_screen.dart';
|
||||
import 'package:customer/themes/round_button_fill.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:customer/utils/app_router.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../../constant/constant.dart';
|
||||
import '../../controllers/my_rental_booking_controller.dart';
|
||||
import '../../controllers/theme_controller.dart';
|
||||
@@ -38,7 +39,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
children: [
|
||||
const SizedBox(width: 10),
|
||||
Text(
|
||||
"Rental History".tr(),
|
||||
"Rental History".tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 18,
|
||||
color: AppThemeData.grey900,
|
||||
@@ -75,7 +76,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
"Please Log In to Continue".tr(),
|
||||
"Please Log In to Continue".tr,
|
||||
style: TextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -88,7 +89,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
const SizedBox(height: 5),
|
||||
Text(
|
||||
"You’re not logged in. Please sign in to access your account and explore all features."
|
||||
.tr(),
|
||||
.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color:
|
||||
@@ -101,7 +102,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
RoundedButtonFill(
|
||||
title: "Log in".tr(),
|
||||
title: "Log in".tr,
|
||||
width: 55,
|
||||
height: 5.5,
|
||||
color: AppThemeData.primary300,
|
||||
@@ -122,7 +123,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
if (orders.isEmpty) {
|
||||
return Center(
|
||||
child: Text(
|
||||
"No orders found".tr(),
|
||||
"No orders found".tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -272,7 +273,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Text(
|
||||
"Vehicle Type :".tr(),
|
||||
"Vehicle Type :".tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 16,
|
||||
color:
|
||||
@@ -387,7 +388,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"Package info :".tr(),
|
||||
"Package info :".tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 16,
|
||||
color:
|
||||
@@ -471,7 +472,7 @@ class MyRentalBookingScreen extends StatelessWidget {
|
||||
.isEnableOTPTripStartForRental ==
|
||||
true)
|
||||
Text(
|
||||
"${'OTP :'.tr()} ${order.otpCode}",
|
||||
"${'OTP :'.tr} ${order.otpCode}",
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 16,
|
||||
color:
|
||||
|
||||
Reference in New Issue
Block a user