This commit is contained in:
Hamza-Ayed
2024-02-25 00:23:00 +03:00
parent a9f557ca83
commit b33e797f76
22 changed files with 368 additions and 159 deletions

View File

@@ -36,6 +36,7 @@ class RateController extends GetxController {
void addRateToPassenger() async {
// HomeCaptainController homeCaptainController =
// Get.find<HomeCaptainController>();
// Get.put(MapDriverController());
if (selectedRateItemId < 1) {
Get.defaultDialog(
title: 'You Should choose rate figure'.tr,
@@ -50,18 +51,17 @@ class RateController extends GetxController {
'rating': selectedRateItemId.toString(),
'comment': comment.text,
});
await CRUD()
.post(link: AppLink.sendEmailToPassengerForTripDetails, payload: {
await CRUD().sendEmail(AppLink.sendEmailToPassengerForTripDetails, {
'startLocation':
Get.find<MapDriverController>().latLngpassengerLocation.toString(),
'endLocation': Get.find<MapDriverController>()
.latLngPassengerDestination
.toString(),
Get.find<MapDriverController>().passengerLocation.toString(),
'endLocation':
Get.find<MapDriverController>().passengerDestination.toString(),
'name': Get.find<MapDriverController>().name.toString(),
'timeOfTrip': Get.find<MapDriverController>().duration.toString(),
'fee': Get.find<MapDriverController>().timeOfOrder.toString(),
'timeOfTrip': Get.find<MapDriverController>().timeOfOrder.toString(),
'fee': Get.find<MapDriverController>().totalPassenger.toString(),
'duration': Get.find<MapDriverController>().duration.toString(),
'phone': Get.find<MapDriverController>().phone.toString(),
'email': Get.find<MapDriverController>().email.toString(),
});
// homeCaptainController.isActive = true;
// update();