BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'dart:async';
|
||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import '../constant/constant.dart';
|
||||
import '../models/parcel_order_model.dart';
|
||||
@@ -106,7 +106,7 @@ class ParcelMyBookingController extends GetxController {
|
||||
isLoading.value = true;
|
||||
|
||||
if (order.status != Constant.orderPlaced) {
|
||||
ShowToastDialog.showToast("You can only cancel before pickup.".tr());
|
||||
ShowToastDialog.showToast("You can only cancel before pickup.".tr);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -160,9 +160,9 @@ class ParcelMyBookingController extends GetxController {
|
||||
);
|
||||
}
|
||||
|
||||
ShowToastDialog.showToast("Order cancelled successfully".tr());
|
||||
ShowToastDialog.showToast("Order cancelled successfully".tr);
|
||||
} catch (e) {
|
||||
ShowToastDialog.showToast("${'Failed to cancel order:'.tr()} $e".tr());
|
||||
ShowToastDialog.showToast("${'Failed to cancel order:'.tr} $e".tr);
|
||||
} finally {
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user