update location accuracy setting
This commit is contained in:
@ -429,9 +429,10 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed:() async {
|
||||
Get.back();
|
||||
print("---- go to ----");
|
||||
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}");
|
||||
Destination ds = Destination(
|
||||
lat: position.latitude,
|
||||
@ -443,7 +444,6 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
lon: mp.geometry!.geoSerie!.geoPoints[0].longitude
|
||||
);
|
||||
|
||||
Get.back();
|
||||
|
||||
destinationController.destinationMatrixFromCurrentPoint([ds, tp]);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user