This commit is contained in:
Hamza-Ayed
2024-01-19 15:17:18 +03:00
parent 7af7e71b30
commit ec7f2de651
7 changed files with 84 additions and 116 deletions

View File

@@ -155,6 +155,7 @@ class GoogleMapPassengerWidget extends StatelessWidget {
icon: controller.startIcon,
infoWindow: const InfoWindow(
title: 'Time',
anchor: Offset(0.5, 0.5), // Adjust the anchor as needed
// snippet: controller.durationFromDriverToPassenger
// .toString(),
),

View File

@@ -51,34 +51,9 @@ class PointsPageForRider extends StatelessWidget {
),
wayPointController.wayPoints.length > 1
? ElevatedButton(
onPressed: () {
print(mapPassengerController.placesCoordinate
.toString());
controller.clearPolyline();
controller.isWayPointStopsSheetUtilGetMap =
false;
mapPassengerController.durationToRide = 0;
for (var i = 0;
i < wayPointController.wayPoints.length;
i++) {
if (mapPassengerController
.placesCoordinate[i + 1]
.toString() !=
'') {
mapPassengerController.getMapPoints(
mapPassengerController
.placesCoordinate[i]
.toString(),
mapPassengerController
.placesCoordinate[i + 1]
.toString(),
i,
);
}
}
controller.bottomSheet();
controller.showBottomSheet1();
onPressed: () async {
mapPassengerController
.getMapPointsForAllMethods();
},
child: const Text('Get Map'),
)