This commit is contained in:
Hamza Aleghwairyeen
2024-03-30 14:17:37 +03:00
parent fd9a2a518c
commit d779765da4
2 changed files with 19 additions and 32 deletions

View File

@@ -146,27 +146,16 @@ class GoogleMapPassengerWidget extends StatelessWidget {
markers: {
if (controller.statusRide != 'Apply' ||
!controller.rideTimerBegin)
for (var i = 0;
controller
.dataCarsLocationByPassenger['message'].length;
i++)
for (var carLocation in controller.carLocationsModels)
Marker(
// anchor: const Offset(4, 4),
position: LatLng(
double.parse(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][i]['latitude']),
double.parse(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][i]['longitude'])),
carLocation.latitude,
carLocation.longitude,
),
icon: controller.carIcon,
markerId: MarkerId(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][i]['longitude']
.toString()),
rotation: double.parse(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][i]['heading']),
markerId: MarkerId(carLocation.toString()),
rotation: carLocation.heading,
),
// controller.carMarrkerAplied,
if (controller.statusRide == 'Apply')