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,8 +4,8 @@ import 'package:customer/constant/constant.dart';
import 'package:customer/models/wallet_transaction_model.dart';
import 'package:customer/screen_ui/multi_vendor_service/wallet_screen/wallet_screen.dart';
import 'package:customer/themes/show_toast_dialog.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import '../models/rental_order_model.dart';
import '../models/tax_model.dart';
import '../service/fire_store_utils.dart';
@@ -157,7 +157,7 @@ class MyRentalBookingController extends GetxController {
if (selectedPaymentMethod.value == PaymentGateway.cod.name) {
selectedOrder.value.paymentMethod = selectedPaymentMethod.value;
await FireStoreUtils.rentalOrderPlace(selectedOrder.value).then((value) {
ShowToastDialog.showToast("Payment method changed".tr());
ShowToastDialog.showToast("Payment method changed".tr);
Get.back();
Get.back();
});
@@ -174,8 +174,8 @@ class MyRentalBookingController extends GetxController {
userId: FireStoreUtils.getCurrentUid(),
isTopup: false,
orderId: selectedOrder.value.id,
note: "Rental Amount debited".tr(),
paymentStatus: "success".tr(),
note: "Rental Amount debited".tr,
paymentStatus: "success".tr,
serviceType: Constant.parcelServiceType,
);
@@ -192,7 +192,7 @@ class MyRentalBookingController extends GetxController {
}
await FireStoreUtils.rentalOrderPlace(selectedOrder.value).then((value) {
ShowToastDialog.showToast("Payment successfully".tr());
ShowToastDialog.showToast("Payment successfully".tr);
Get.back();
Get.back();
});
@@ -290,8 +290,8 @@ class MyRentalBookingController extends GetxController {
isTopup: true,
// refund
orderId: order.id,
note: "Refund for cancelled booking".tr(),
paymentStatus: "success".tr(),
note: "Refund for cancelled booking".tr,
paymentStatus: "success".tr,
serviceType: Constant.parcelServiceType,
);
@@ -301,9 +301,9 @@ class MyRentalBookingController extends GetxController {
userId: FireStoreUtils.getCurrentUid(),
);
}
ShowToastDialog.showToast("Booking cancelled successfully".tr());
ShowToastDialog.showToast("Booking cancelled successfully".tr);
} catch (e) {
ShowToastDialog.showToast("Failed to cancel booking: $e".tr());
ShowToastDialog.showToast("Failed to cancel booking: $e".tr);
} finally {
isLoading.value = false;
}