4/3/4
This commit is contained in:
@@ -64,12 +64,6 @@ class LocationController extends GetxController {
|
||||
// Get.find<LocationController>().myLocation.longitude,
|
||||
// )));
|
||||
// }
|
||||
Get.find<HomeCaptainController>()
|
||||
.mapHomeCaptainController
|
||||
.animateCamera(CameraUpdate.newLatLng(LatLng(
|
||||
Get.find<LocationController>().myLocation.latitude,
|
||||
Get.find<LocationController>().myLocation.longitude,
|
||||
)));
|
||||
|
||||
// if (box.read(BoxName.driverID) != null) {
|
||||
await CRUD()
|
||||
@@ -86,6 +80,12 @@ class LocationController extends GetxController {
|
||||
: totalDistance.toStringAsFixed(1),
|
||||
'status': box.read(BoxName.statusDriverLocation).toString()
|
||||
});
|
||||
Get.find<HomeCaptainController>()
|
||||
.mapHomeCaptainController
|
||||
.animateCamera(CameraUpdate.newLatLng(LatLng(
|
||||
Get.find<LocationController>().myLocation.latitude,
|
||||
Get.find<LocationController>().myLocation.longitude,
|
||||
)));
|
||||
// if (Get.find<HomeCaptainController>().rideId == '0') {
|
||||
// await sql.insertData({
|
||||
// 'driver_id': box.read(BoxName.driverID),
|
||||
|
||||
@@ -640,9 +640,9 @@ class MapDriverController extends GetxController {
|
||||
);
|
||||
|
||||
// Animate camera only once after updating the marker
|
||||
mapController!.animateCamera(
|
||||
CameraUpdate.newLatLng(myLocation),
|
||||
);
|
||||
// mapController!.animateCamera(
|
||||
// CameraUpdate.newLatLng(myLocation),
|
||||
// );
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user