BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -2,9 +2,9 @@ import 'dart:developer';
|
||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:customer/models/coupon_model.dart';
|
||||
import 'package:customer/models/user_model.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../constant/constant.dart';
|
||||
import '../models/onprovider_order_model.dart';
|
||||
import '../models/wallet_transaction_model.dart';
|
||||
@@ -172,7 +172,7 @@ class OnDemandOrderDetailsController extends GetxController {
|
||||
final order = onProviderOrder.value;
|
||||
if (order == null) return;
|
||||
|
||||
ShowToastDialog.showLoader("Please wait...".tr());
|
||||
ShowToastDialog.showLoader("Please wait...".tr);
|
||||
|
||||
try {
|
||||
double total = 0.0;
|
||||
@@ -222,7 +222,7 @@ class OnDemandOrderDetailsController extends GetxController {
|
||||
isTopup: true,
|
||||
orderId: order.id,
|
||||
note: 'Booking Amount Refund',
|
||||
paymentStatus: "success".tr(),
|
||||
paymentStatus: "success".tr,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -240,7 +240,7 @@ class OnDemandOrderDetailsController extends GetxController {
|
||||
isTopup: false,
|
||||
orderId: order.id,
|
||||
note: 'Booking Amount Refund',
|
||||
paymentStatus: "success".tr(),
|
||||
paymentStatus: "success".tr,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -260,7 +260,7 @@ class OnDemandOrderDetailsController extends GetxController {
|
||||
isTopup: true,
|
||||
orderId: order.id,
|
||||
note: 'Admin commission refund',
|
||||
paymentStatus: "success".tr(),
|
||||
paymentStatus: "success".tr,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -289,11 +289,11 @@ class OnDemandOrderDetailsController extends GetxController {
|
||||
|
||||
ShowToastDialog.closeLoader();
|
||||
Get.back();
|
||||
ShowToastDialog.showToast("Booking cancelled successfully".tr());
|
||||
ShowToastDialog.showToast("Booking cancelled successfully".tr);
|
||||
} catch (e, st) {
|
||||
log("Cancel error: $e\n$st");
|
||||
ShowToastDialog.closeLoader();
|
||||
ShowToastDialog.showToast("Something went wrong".tr());
|
||||
ShowToastDialog.showToast("Something went wrong".tr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user