3/1/1
This commit is contained in:
@@ -130,6 +130,7 @@ class MapPassengerController extends GetxController {
|
||||
double heightBottomSheetShown = 0;
|
||||
double cashConfirmPageShown = 250;
|
||||
late String driverId;
|
||||
late String gender;
|
||||
double widthMapTypeAndTraffic = 50;
|
||||
double paymentPageShown = Get.height * .6;
|
||||
late LatLng southwest;
|
||||
@@ -910,6 +911,8 @@ class MapPassengerController extends GetxController {
|
||||
// if (dataCarsLocationByPassenger.length > carsOrder) {
|
||||
driverId = dataCarsLocationByPassenger['message'][carsOrder]['driver_id']
|
||||
.toString();
|
||||
gender = dataCarsLocationByPassenger['message'][carsOrder]['gender']
|
||||
.toString();
|
||||
// }
|
||||
|
||||
// //print('driverId==============$driverId');
|
||||
@@ -1368,7 +1371,7 @@ class MapPassengerController extends GetxController {
|
||||
(_locationData.latitude != null && _locationData.longitude != null
|
||||
? LatLng(_locationData.latitude!, _locationData.longitude!)
|
||||
: null)!;
|
||||
|
||||
newStartPointLocation = passengerLocation;
|
||||
// //print location details
|
||||
// //print('Accuracy: ${_locationData.accuracy}');
|
||||
// //print('Latitude: ${_locationData.latitude}');
|
||||
@@ -1576,7 +1579,9 @@ class MapPassengerController extends GetxController {
|
||||
double latPassengerDestination = double.parse(coordDestination[0]);
|
||||
double lngPassengerDestination = double.parse(coordDestination[1]);
|
||||
myDestination = LatLng(latPassengerDestination, lngPassengerDestination);
|
||||
|
||||
// if (origin.isEmpty) {
|
||||
// origin = passengerLocation.toString(); //todo
|
||||
// }
|
||||
isLoading = false;
|
||||
update();
|
||||
var url =
|
||||
@@ -1610,7 +1615,7 @@ class MapPassengerController extends GetxController {
|
||||
LatLngBounds(northeast: northeast, southwest: southwest);
|
||||
|
||||
// Fit the camera to the bounds
|
||||
var cameraUpdate = CameraUpdate.newLatLngBounds(boundsData, 130);
|
||||
var cameraUpdate = CameraUpdate.newLatLngBounds(boundsData, 160);
|
||||
mapController!.animateCamera(cameraUpdate);
|
||||
|
||||
// getDistanceFromText(data[0]['distance']['text']);
|
||||
|
||||
Reference in New Issue
Block a user