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