update location accuracy setting
This commit is contained in:
@ -175,4 +175,4 @@ SPEC CHECKSUMS:
|
|||||||
|
|
||||||
PODFILE CHECKSUM: a1c2f8dde3796ecc1697a15e7c75eb5205d8a740
|
PODFILE CHECKSUM: a1c2f8dde3796ecc1697a15e7c75eb5205d8a740
|
||||||
|
|
||||||
COCOAPODS: 1.12.0
|
COCOAPODS: 1.12.1
|
||||||
|
|||||||
@ -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]);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user