update location accuracy setting

This commit is contained in:
Mohamed Nouffer
2023-07-18 15:08:41 +05:30
parent 9154798448
commit 83ecc0ec8f
2 changed files with 3 additions and 3 deletions

View File

@ -175,4 +175,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: a1c2f8dde3796ecc1697a15e7c75eb5205d8a740 PODFILE CHECKSUM: a1c2f8dde3796ecc1697a15e7c75eb5205d8a740
COCOAPODS: 1.12.0 COCOAPODS: 1.12.1

View File

@ -429,9 +429,10 @@ class BottomSheetNew extends GetView<BottomSheetController> {
), ),
ElevatedButton( ElevatedButton(
onPressed:() async { onPressed:() async {
Get.back();
print("---- go to ----"); print("---- go to ----");
GeoJsonFeature<GeoJsonMultiPoint> mp = indexController.currentFeature[0] as GeoJsonFeature<GeoJsonMultiPoint>; GeoJsonFeature<GeoJsonMultiPoint> mp = indexController.currentFeature[0] as GeoJsonFeature<GeoJsonMultiPoint>;
Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.best); Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.lowest);
print("------- position -------- ${position}"); print("------- position -------- ${position}");
Destination ds = Destination( Destination ds = Destination(
lat: position.latitude, lat: position.latitude,
@ -443,7 +444,6 @@ class BottomSheetNew extends GetView<BottomSheetController> {
lon: mp.geometry!.geoSerie!.geoPoints[0].longitude lon: mp.geometry!.geoSerie!.geoPoints[0].longitude
); );
Get.back();
destinationController.destinationMatrixFromCurrentPoint([ds, tp]); destinationController.destinationMatrixFromCurrentPoint([ds, tp]);
}, },