BASE: Switch From EasyLocalization To GetX Localization.

This commit is contained in:
2025-12-04 16:56:39 +05:00
parent 157545f1c0
commit bf1d07a048
218 changed files with 2535 additions and 2313 deletions

View File

@@ -4,10 +4,10 @@ import 'package:customer/screen_ui/rental_service/rental_coupon_screen.dart';
import 'package:customer/themes/show_toast_dialog.dart';
import 'package:customer/utils/network_image_widget.dart';
import 'package:dotted_border/dotted_border.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import '../../controllers/rental_conformation_controller.dart';
import '../../controllers/theme_controller.dart';
import '../../themes/app_them_data.dart';
@@ -56,7 +56,7 @@ class RentalConformationScreen extends StatelessWidget {
),
const SizedBox(width: 10),
Text(
"Confirm Rent a Car".tr(),
"Confirm Rent a Car".tr,
style: AppThemeData.boldTextStyle(
fontSize: 18,
color: AppThemeData.grey900,
@@ -156,7 +156,7 @@ class RentalConformationScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Your Preference".tr(),
"Your Preference".tr,
style: AppThemeData.boldTextStyle(
fontSize: 14,
color:
@@ -256,7 +256,7 @@ class RentalConformationScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Vehicle Type".tr(),
"Vehicle Type".tr,
style: AppThemeData.boldTextStyle(
fontSize: 14,
color:
@@ -330,7 +330,7 @@ class RentalConformationScreen extends StatelessWidget {
children: [
Expanded(
child: Text(
"Coupons".tr(),
"Coupons".tr,
style: AppThemeData.boldTextStyle(
fontSize: 16,
color:
@@ -359,14 +359,14 @@ class RentalConformationScreen extends StatelessWidget {
} else {
ShowToastDialog.showToast(
"This offer not eligible for this booking"
.tr(),
.tr,
);
}
}
});
},
child: Text(
"View All".tr(),
"View All".tr,
style: AppThemeData.boldTextStyle(
decoration: TextDecoration.underline,
fontSize: 14,
@@ -416,7 +416,7 @@ class RentalConformationScreen extends StatelessWidget {
color: AppThemeData.grey900,
),
decoration: InputDecoration(
hintText: "Write coupon code".tr(),
hintText: "Write coupon code".tr,
hintStyle: AppThemeData.mediumTextStyle(
fontSize: 16,
color: AppThemeData.parcelService500,
@@ -426,7 +426,7 @@ class RentalConformationScreen extends StatelessWidget {
),
),
RoundedButtonFill(
title: "Redeem now".tr(),
title: "Redeem now".tr,
onPress: () {
if (controller.couponList
.where(
@@ -470,18 +470,18 @@ class RentalConformationScreen extends StatelessWidget {
} else {
ShowToastDialog.showToast(
"This offer not eligible for this booking"
.tr(),
.tr,
);
}
} else {
ShowToastDialog.showToast(
"This coupon code has been expired"
.tr(),
.tr,
);
}
} else {
ShowToastDialog.showToast(
"Invalid coupon code".tr(),
"Invalid coupon code".tr,
);
}
},
@@ -516,7 +516,7 @@ class RentalConformationScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Order Summary".tr(),
"Order Summary".tr,
style: AppThemeData.boldTextStyle(
fontSize: 14,
color: AppThemeData.grey500,
@@ -526,7 +526,7 @@ class RentalConformationScreen extends StatelessWidget {
// Subtotal
_summaryTile(
"Subtotal".tr(),
"Subtotal".tr,
Constant.amountShow(
amount:
controller.subTotal.value.toString(),
@@ -537,7 +537,7 @@ class RentalConformationScreen extends StatelessWidget {
// Discount
_summaryTile(
"Discount".tr(),
"Discount".tr,
Constant.amountShow(
amount:
controller.discount.value.toString(),
@@ -590,7 +590,7 @@ class RentalConformationScreen extends StatelessWidget {
// Total
_summaryTile(
"Order Total".tr(),
"Order Total".tr,
Constant.amountShow(
amount:
controller.totalAmount.value.toString(),
@@ -603,7 +603,7 @@ class RentalConformationScreen extends StatelessWidget {
),
SizedBox(height: 20),
RoundedButtonFill(
title: "Book now".tr(),
title: "Book now".tr,
onPress: () {
controller.placeOrder();
},