This commit is contained in:
Hamza Aleghwairyeen
2024-03-30 15:11:14 +03:00
parent d779765da4
commit 66cd964a89
5 changed files with 29 additions and 26 deletions

View File

@@ -159,23 +159,22 @@ class GoogleMapPassengerWidget extends StatelessWidget {
),
// controller.carMarrkerAplied,
if (controller.statusRide == 'Apply')
// for (var carLocation
// in controller.driverCarsLocationToPassengerAfterApplied)
Marker(
// anchor: const Offset(4, 4),
position: LatLng(
double.parse(controller.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['latitude']),
double.parse(controller.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['longitude'])), //carLocation,
icon: controller.carIcon,
rotation: double.parse(
controller.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['heading']),
markerId: MarkerId(controller
.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['longitude']
.toString())),
for (var carLocation
in controller.driverCarsLocationToPassengerAfterApplied)
Marker(
// anchor: const Offset(4, 4),
position: LatLng(
carLocation.latitude,
carLocation.longitude,
), //carLocation,
icon: controller.carIcon,
rotation: double.parse(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][0]['heading']),
markerId: MarkerId(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][0]['longitude']
.toString())),
for (int i = 1;
i < controller.coordinatesWithoutEmpty.length - 1;
i++)