Back to Flet

flet-geolocator

sdk/python/packages/flet-geolocator/README.md

0.85.0.dev21.8 KB
Original Source

flet-geolocator

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.

Documentation

Detailed documentation to this package can be found here.

Platform Support

PlatformWindowsmacOSLinuxiOSAndroidWeb
Supported

Usage

Installation

To install the flet-geolocator package and add it to your project dependencies:

  • Using uv:

    bash
    uv add flet-geolocator
    
  • Using pip:

    bash
    pip install flet-geolocator
    

    After this, you will have to manually add this package to your requirements.txt or pyproject.toml.

Examples

For examples, see these.