This commit is contained in:
Hamza Aleghwairyeen
2024-04-03 00:05:31 +03:00
parent 02b27110df
commit ae41f1bb24
7 changed files with 48 additions and 26 deletions

View File

@@ -21,7 +21,7 @@ class PassengerLocationMapPage extends StatelessWidget {
Get.put(MapDriverController());
return MyScafolld(
title: 'Map Passenger'.tr,
title: Get.find<MapDriverController>().carType,
body: [
GoogleDriverMap(locationController: locationController),
const PassengerInfoWindow(),

View File

@@ -89,7 +89,7 @@ GetBuilder<HomeCaptainController> leftMainMenuCaptainIcons() {
borderRadius: BorderRadius.circular(15)),
child: IconButton(
onPressed: () {
controller.mapHomeCaptaiController
controller.mapHomeCaptainController
.animateCamera(CameraUpdate.newLatLng(LatLng(
Get.find<LocationController>().myLocation.latitude,
Get.find<LocationController>().myLocation.longitude,

View File

@@ -62,8 +62,7 @@ GetBuilder<MapDriverController> driverEndRideBar() {
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
const Icon(Icons.timer),
Text(mapDriverController.rideTimerFromBegin
.toStringAsFixed(0)),
Text(mapDriverController.stringRemainingTimeRideBegin1),
const Icon(Icons.location_on),
Text(
'${mapDriverController.recentDistanceToDash.toStringAsFixed(0)} ${'KM'.tr}'),

View File

@@ -30,7 +30,7 @@ class GoogleDriverMap extends StatelessWidget {
),
onCameraMoveStarted: () {},
onCameraMove: (position) {
// locationController.myLocation = position.target;
locationController.myLocation = position.target;
print(position);
},
minMaxZoomPreference: const MinMaxZoomPreference(6, 18),