diff --git a/android/app/build.gradle b/android/app/build.gradle index 36eb45b..9f9edef 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -54,8 +54,8 @@ android { // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdk = 23 targetSdk = flutter.targetSdkVersion - versionCode = 84 - versionName = '1.5.84' + versionCode = 85 + versionName = '1.5.85' multiDexEnabled =true } diff --git a/lib/controller/home/captin/map_driver_controller.dart b/lib/controller/home/captin/map_driver_controller.dart index 30477cc..ae9c088 100644 --- a/lib/controller/home/captin/map_driver_controller.dart +++ b/lib/controller/home/captin/map_driver_controller.dart @@ -705,7 +705,7 @@ class MapDriverController extends GetxController { await Future.delayed(const Duration(seconds: 1)); recentDistanceToDash = Get.find().totalDistance; // rideTimerFromBegin = i; - if (int.parse(duration) > i) { + if (int.parse(duration) + 300 > i) { price = double.parse(totalCost); } else { if (startNameLocation.toLowerCase().contains('airport') || @@ -820,13 +820,10 @@ class MapDriverController extends GetxController { ? (i ~/ 60) * (Get.find().latePrice + .5) + - (recentDistanceToDash * - Get.find().comfortPrice) - : (i ~/ 60) * - (Get.find().latePrice + - .5) + - (recentDistanceToDash * - Get.find().mashwariPrice); + (price) - + int.parse(duration) * + (Get.find().latePrice + .5) + : price; } else if (currentTime.hour >= 14 && currentTime.hour <= 17) { price = carType == 'Comfort' // || carType == 'Free Ride' ? (i ~/ 60) * (Get.find().heavyPrice) +