BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import 'package:customer/screen_ui/auth_screens/login_screen.dart';
|
||||
import 'package:customer/screen_ui/parcel_service/parcel_order_details.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/parcel_my_booking_controller.dart';
|
||||
import '../../controllers/theme_controller.dart';
|
||||
@@ -36,7 +37,7 @@ class MyBookingScreen extends StatelessWidget {
|
||||
children: [
|
||||
const SizedBox(width: 10),
|
||||
Text(
|
||||
"Parcel History".tr(),
|
||||
"Parcel History".tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 18,
|
||||
color: AppThemeData.grey900,
|
||||
@@ -75,7 +76,7 @@ class MyBookingScreen 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 MyBookingScreen 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 MyBookingScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
RoundedButtonFill(
|
||||
title: "Log in".tr(),
|
||||
title: "Log in".tr,
|
||||
width: 55,
|
||||
height: 5.5,
|
||||
color: AppThemeData.primary300,
|
||||
@@ -121,7 +122,7 @@ class MyBookingScreen extends StatelessWidget {
|
||||
if (orders.isEmpty) {
|
||||
return Center(
|
||||
child: Text(
|
||||
"No orders found".tr(),
|
||||
"No orders found".tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
@@ -169,7 +170,7 @@ class MyBookingScreen extends StatelessWidget {
|
||||
bottom: 8.0,
|
||||
),
|
||||
child: Text(
|
||||
"${'Order Date:'.tr()}${order.isSchedule == true ? controller.formatDate(order.createdAt!) : controller.formatDate(order.senderPickupDateTime!)}",
|
||||
"${'Order Date:'.tr}${order.isSchedule == true ? controller.formatDate(order.createdAt!) : controller.formatDate(order.senderPickupDateTime!)}",
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
fontSize: 14,
|
||||
color: AppThemeData.info400,
|
||||
@@ -230,7 +231,7 @@ class MyBookingScreen extends StatelessWidget {
|
||||
children: [
|
||||
_infoSection(
|
||||
"Pickup Address (Sender):"
|
||||
.tr(),
|
||||
.tr,
|
||||
order.sender?.name ?? '',
|
||||
order.sender?.address ?? '',
|
||||
order.sender?.phone ?? '',
|
||||
@@ -243,7 +244,7 @@ class MyBookingScreen extends StatelessWidget {
|
||||
const SizedBox(height: 16),
|
||||
_infoSection(
|
||||
"Delivery Address (Receiver):"
|
||||
.tr(),
|
||||
.tr,
|
||||
order.receiver?.name ?? '',
|
||||
order.receiver?.address ??
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user