This commit is contained in:
Hamza-Ayed
2024-05-31 19:19:32 +03:00
parent 794bc8fb24
commit cc76aa394f
8 changed files with 166 additions and 50 deletions

View File

@@ -2413,8 +2413,8 @@ class MapPassengerController extends GetxController {
costDelivery = (distance * deliveryPrice) + costDuration * latePrice;
costLady = (distance * comfortPrice + 2) + costDuration * latePrice;
costRayehGai = (distance * 2 * speedPrice) -
((distance * 2 * speedPrice) * .3) +
costDuration * latePrice;
((distance * 1 * speedPrice) * .4) +
costDuration * 2 * latePrice;
update();
} else if (currentTime.hour >= 13 && currentTime.hour <= 16) {
@@ -2425,8 +2425,8 @@ class MapPassengerController extends GetxController {
costDelivery = (distance * deliveryPrice) + costDuration * heavyPrice;
costLady = (distance * comfortPrice + 2) + costDuration * heavyPrice;
costRayehGai = (distance * 2 * speedPrice) -
((distance * 2 * speedPrice) * .3) +
costDuration * heavyPrice;
((distance * 1 * speedPrice) * .4) +
costDuration * 2 * heavyPrice;
update();
// } /
@@ -2437,8 +2437,8 @@ class MapPassengerController extends GetxController {
costDelivery = (distance * deliveryPrice) + costDuration;
costLady = (distance * comfortPrice + 2) + costDuration;
costRayehGai = (distance * 2 * speedPrice) -
((distance * 2 * speedPrice) * .3) +
costDuration;
((distance * 1 * speedPrice) * .4) +
costDuration * 2;
update();
}
//print('cost $cost');