4/2/2
This commit is contained in:
@@ -1180,6 +1180,7 @@ class MapPassengerController extends GetxController {
|
||||
// If the trip duration is less than or equal to 50 minutes, then break the loop.
|
||||
for (var i = 0; i < loopCount; i++) {
|
||||
// Wait for 50 seconds.
|
||||
print('loop is $i from $loopCount');
|
||||
await Future.delayed(const Duration(seconds: 4));
|
||||
await getDriverCarsLocationToPassengerAfterApplied();
|
||||
reloadMarkerDriverCarsLocationToPassengerAfterApplied();
|
||||
@@ -1207,7 +1208,8 @@ class MapPassengerController extends GetxController {
|
||||
['latitude']),
|
||||
double.parse(datadriverCarsLocationToPassengerAfterApplied['message'][0]
|
||||
['longitude']));
|
||||
final driverAcceptedMarker = Marker(
|
||||
print('driver position $driverPosition')
|
||||
; final driverAcceptedMarker = Marker(
|
||||
markerId: const MarkerId('driverToPassengers'),
|
||||
position: driverPosition,
|
||||
rotation: double.parse(
|
||||
@@ -1665,6 +1667,8 @@ class MapPassengerController extends GetxController {
|
||||
//print('Reloading markers ($reloadCount)');
|
||||
if (!rideConfirm) {
|
||||
reloadMarkers();
|
||||
}else{
|
||||
runWhenRideIsBegin();
|
||||
}
|
||||
|
||||
if (reloadCount >= 35) {
|
||||
|
||||
Reference in New Issue
Block a user