24-12/25/1
This commit is contained in:
@@ -1767,6 +1767,7 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
|
||||
String driversStatusForSearchWindow = '';
|
||||
|
||||
Future<void> confirmRideForAllDriverAvailable() async {
|
||||
bool driversFound = false;
|
||||
const maxAttempts = 8;
|
||||
@@ -1795,13 +1796,13 @@ class MapPassengerController extends GetxController {
|
||||
update();
|
||||
await postRideDetailsToServer();
|
||||
driversStatusForSearchWindow = 'Your order sent to drivers'.tr;
|
||||
delayAndFetchRideStatusForAllDriverAvailable(rideId);
|
||||
|
||||
await notifyAvailableDrivers();
|
||||
|
||||
driversStatusForSearchWindow = 'The drivers are reviewing your request'.tr;
|
||||
Log.print('driversStatusForSearchWindow: $driversStatusForSearchWindow');
|
||||
update();
|
||||
|
||||
delayAndFetchRideStatusForAllDriverAvailable(rideId);
|
||||
// update();
|
||||
}
|
||||
|
||||
@@ -2061,11 +2062,11 @@ class MapPassengerController extends GetxController {
|
||||
timer.cancel(); //todo
|
||||
// addRideToNotificationDriverString();
|
||||
// Show dialog to increase fee...
|
||||
MyDialog().getDialog(
|
||||
'Are you want to wait drivers to accept your order'.tr, '', () {
|
||||
Get.back();
|
||||
addRideToNotificationDriverAvailable();
|
||||
});
|
||||
// MyDialog().getDialog(
|
||||
// 'Are you want to wait drivers to accept your order'.tr, '', () {
|
||||
// Get.back();
|
||||
// addRideToNotificationDriverAvailable();
|
||||
// });
|
||||
update();
|
||||
_rideStatusStreamController
|
||||
.close(); // Close stream after max attempts
|
||||
|
||||
Reference in New Issue
Block a user