This commit is contained in:
Hamza-Ayed
2024-05-30 20:17:22 +03:00
parent 4bff08f2e7
commit 02fdf8b0f1
9 changed files with 310 additions and 241 deletions

View File

@@ -387,9 +387,10 @@ class MapDriverController extends GetxController {
Get.back();
}));
} else {
double costOfWaiting5Minute =
(distanceBetweenDriverAndPassengerWhenConfirm * .08) +
(5 * 1); //for Eygpt other like jordan .06 per minute
double costOfWaiting5Minute = box.read(BoxName.countryCode) == 'Egypt'
? (distanceBetweenDriverAndPassengerWhenConfirm * .08) + (5 * 1)
: (distanceBetweenDriverAndPassengerWhenConfirm * .06) +
(5 * .06); //for Eygpt other like jordan .06 per minute
var res = await CRUD().post(link: AppLink.addDriverpayment, payload: {
'rideId': rideId,
'amount': costOfWaiting5Minute.toString(),
@@ -516,6 +517,7 @@ class MapDriverController extends GetxController {
'price': price.toString(),
});
// Get.back();
// }
}
void cancelCheckRideFromPassenger() async {