4/2/8
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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}'),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user