How to Get Device Lat Long in Flutter

Posted October 12, 2020 1k views

I need Device current latitude and longitude in flutter how to get it ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


Refer to below link, which provides some insights about Flutter:

Below would fetch that information:

if (currentPosition != null)
“LAT: ${
currentPosition.latitude}, LNG: ${_currentPosition.longitude}”),
child: Text(“Get location”),
onPressed: () {

Hope this helps!

Sri Charan

by PaulHalliday
A simple guide on how to use the Geolocator plugin in Flutter to get the current latitude and longitude coordinates, and even get a placemark address.