BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -5,9 +5,10 @@ import 'package:customer/models/coupon_model.dart';
|
||||
import 'package:customer/models/rental_order_model.dart';
|
||||
import 'package:customer/service/fire_store_utils.dart';
|
||||
import 'package:customer/themes/show_toast_dialog.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 '../screen_ui/rental_service/rental_dashboard_screen.dart';
|
||||
import 'cab_rental_dashboard_controllers.dart';
|
||||
|
||||
@@ -81,7 +82,7 @@ class RentalConformationController extends GetxController {
|
||||
}
|
||||
|
||||
Future<void> placeOrder() async {
|
||||
ShowToastDialog.showLoader("Placing booking...".tr());
|
||||
ShowToastDialog.showLoader("Placing booking...".tr);
|
||||
rentalOrderModel.value.discount = discount.value.toString();
|
||||
rentalOrderModel.value.couponCode = selectedCouponModel.value.code;
|
||||
rentalOrderModel.value.couponId = selectedCouponModel.value.id;
|
||||
@@ -92,8 +93,8 @@ class RentalConformationController extends GetxController {
|
||||
value,
|
||||
) async {
|
||||
ShowToastDialog.closeLoader();
|
||||
ShowToastDialog.showToast("Order placed successfully".tr());
|
||||
Get.offAll(const RentalDashboardScreen());
|
||||
ShowToastDialog.showToast("Order placed successfully".tr);
|
||||
Get.offAll(RentalDashboardScreen());
|
||||
CabRentalDashboardControllers controller = Get.put(
|
||||
CabRentalDashboardControllers(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user