24-12/25/1
This commit is contained in:
@@ -133,8 +133,10 @@ class FirebaseMessagesController extends GetxController {
|
||||
var passengerList = message.data['passengerList'];
|
||||
|
||||
var myList = jsonDecode(passengerList) as List<dynamic>;
|
||||
Log.print('myList: ${myList}');
|
||||
driverID = myList[0].toString();
|
||||
Get.find<MapPassengerController>().driverToken = myList[2].toString();
|
||||
// Get.find<MapPassengerController>().driverToken = myList[2].toString();
|
||||
// Log.print('driverToken: ${myList[2]}');
|
||||
Get.find<MapPassengerController>().statusRide = 'Apply';
|
||||
Get.find<MapPassengerController>().isSearchingWindow = false;
|
||||
Get.find<MapPassengerController>().update();
|
||||
|
||||
@@ -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