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]); },