Adds geolocation capabilities to your Flet apps.
Features include:
- Get the last known location;
- Get the current location of the device;
- Get continuous location updates;
- Check if location services are enabled on the device.
It is based on the geolocator Flutter package.
Detailed documentation to this package can be found here.
| Platform | Windows | macOS | Linux | iOS | Android | Web |
|---|---|---|---|---|---|---|
| Supported | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
To install the flet-geolocator package and add it to your project dependencies:
-
Using
uv:uv add flet-geolocator
-
Using
pip:pip install flet-geolocator
After this, you will have to manually add this package to your
requirements.txtorpyproject.toml.
For examples, see these.