Real-time device location for Flutter on every platform
open sourceMITfree
Location is a Flutter plugin that gets a device's location with one API on Android, iOS, macOS, the web, Windows and Linux. It gives a one-time fix or a stream of updates with latitude, longitude, altitude, speed, heading, accuracy and mock detection, handles permissions, and keeps tracking in the background on Android and iOS. Accuracy, update interval and distance filter trade precision for battery, and the Android foreground-service notification can be customised. Windows uses Windows.Devices.Geolocation and Linux uses GeoClue2. Guillaume Bernos created it in 2017, and he and Bartek Pacia maintain it.
Problems it solves
- get the user's GPS location in a Flutter app
- track location in the background in Flutter on Android and iOS
- stream location updates in Flutter on desktop and web too
Features
- One API on Android, iOS, macOS, web, Windows and Linux
- One-time location or a live stream of updates
- Background updates on Android and iOS
- Permission handling on every platform
- Accuracy, interval and distance filter settings
Alternatives
The same job
These do what Location (Flutter) does.
- path_provider Flutter plugin for finding commonly used locations on the device's file system
- Flutter Packages Flutter's first-party packages and plugins, maintained by the Flutter team
