You can use a plugin named geolocator for that: An Example: var _distanceInMeters = await Geolocator(). distanceBetween( _latitudeForCalculation, _longitudeForCalculation, _currentPosition.
Read moreHow do you Measure distance on Google Maps in flutter?
First, you need to Learn:
Read moreHow do you calculate distance in flutter?
double get distance => math. sqrt(dx * dx + dy * dy); Flutter.
Read moreCan I calculate distance on Google Maps?
You can measure distance on Google Maps to give you the approximate mileage between any two points (or more) that you place on the map . When using Google Maps on a computer, right-click a spot on the map and choose Measure distance, then just click to add more points to measure the distance.
Read more