This commit is contained in:
Hamza Aleghwairyeen
2024-04-01 14:25:58 +03:00
parent 6a0547276b
commit aa20cd4455
7 changed files with 53 additions and 32 deletions

View File

@@ -501,8 +501,10 @@ update ui for totla results
isRideFinished = true;
isRideStarted = false;
isPriceWindow = false;
if (cartype == 'Comfort') {
if (cartype == 'Comfort' || cartype == 'Free Ride') {
totalCost = price.toStringAsFixed(2);
paymentAmount = totalCost;
// update();
}
box.write(BoxName.statusDriverLocation, 'off');
// changeRideToBeginToPassenger();
@@ -600,7 +602,7 @@ update ui for totla results
await Future.delayed(const Duration(seconds: 1));
recentDistanceToDash = Get.find<LocationController>().totalDistance;
rideTimerFromBegin = i;
price = cartype == 'Comfort'
price = cartype == 'Comfort' || cartype == 'Free Ride'
? (i ~/ 60) +
(recentDistanceToDash *
Get.find<HomeCaptainController>().comfortPrice)