From 83ecc0ec8f3825e456ae2ea4b73be469e477782d Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Tue, 18 Jul 2023 15:08:41 +0530 Subject: [PATCH] update location accuracy setting --- ios/Podfile.lock | 2 +- lib/widgets/bottom_sheet_new.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 017113c..c7ffe25 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -175,4 +175,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: a1c2f8dde3796ecc1697a15e7c75eb5205d8a740 -COCOAPODS: 1.12.0 +COCOAPODS: 1.12.1 diff --git a/lib/widgets/bottom_sheet_new.dart b/lib/widgets/bottom_sheet_new.dart index 588e7e0..09a942c 100644 --- a/lib/widgets/bottom_sheet_new.dart +++ b/lib/widgets/bottom_sheet_new.dart @@ -429,9 +429,10 @@ class BottomSheetNew extends GetView { ), ElevatedButton( onPressed:() async { + Get.back(); print("---- go to ----"); GeoJsonFeature mp = indexController.currentFeature[0] as GeoJsonFeature; - Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.best); + Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.lowest); print("------- position -------- ${position}"); Destination ds = Destination( lat: position.latitude, @@ -443,7 +444,6 @@ class BottomSheetNew extends GetView { lon: mp.geometry!.geoSerie!.geoPoints[0].longitude ); - Get.back(); destinationController.destinationMatrixFromCurrentPoint([ds, tp]); },