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.
This package supports the following platforms:
Platform | Supported |
---|---|
Windows | ✅ |
macOS | ✅ |
Linux | ✅ |
iOS | ✅ |
Android | ✅ |
Web | ✅ |
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.txt
orpyproject.toml
. -
Using
poetry
:poetry add flet-geolocator
For examples, see this