+ 1

Hii friends,In my Flutter application My marker showing wrong co ordinates even though i have given correct c- ordinates,

Hii all,In my flutter Application I am trying to grab my Current location When i tested it I am getting Correct location ,But whe I Refreshed it I am getting Wrong Marker location.That too a constant Wrong Position. When i completly turned off the laptop and after some time only I am geetting Correct location ,And if Refresh Again same mistake is repeating Please help me flutter developers

13th Feb 2024, 7:14 AM
CHENNAMSETTY SUMANTH
CHENNAMSETTY SUMANTH - avatar
1 ответ
0
import 'package:geolocator/geolocator.dart'; Future<Position> getCurrentLocation() async { try { return await Geolocator.getCurrentPosition( desiredAccuracy: LocationAccuracy.best, ); } catch (e) { print("Error getting location: $e"); return null; } }
24th Mar 2024, 1:03 PM
Meline Davtyan
Meline Davtyan - avatar