An open API service indexing awesome lists of open source software.

https://github.com/flet-dev/flet-geolocator

A Flet extension that adds geolocation capabilities to your apps.
https://github.com/flet-dev/flet-geolocator

flet flet-extension flutter geolocator location python

Last synced: 21 days ago
JSON representation

A Flet extension that adds geolocation capabilities to your apps.

Awesome Lists containing this project

README

          

# THIS PROJECT HAS BEEN ARCHIVED

`flet-geolocator` is now part of the main [Flet repository](https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-geolocator).

# flet-geolocator

[![pypi](https://img.shields.io/pypi/v/flet-geolocator.svg)](https://pypi.python.org/pypi/flet-geolocator)
[![downloads](https://static.pepy.tech/badge/flet-geolocator/month)](https://pepy.tech/project/flet-geolocator)
[![license](https://img.shields.io/github/license/flet-dev/flet-geolocator.svg)](https://github.com/flet-dev/flet-geolocator/blob/main/LICENSE)

Adds geolocation capabilities to your [Flet](https://flet.dev) 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](https://pub.dev/packages/geolocator) Flutter package.

## Documentation

Detailed documentation to this package can be found [here](https://flet-dev.github.io/flet-geolocator/).

## Platform Support

This package supports the following platforms:

| Platform | Supported |
|----------|:---------:|
| Windows | ✅ |
| macOS | ✅ |
| Linux | ✅ |
| iOS | ✅ |
| Android | ✅ |
| Web | ✅ |

## 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`.

- Using `poetry`:
```bash
poetry add flet-geolocator
```

### Examples

For examples, see [these](./examples).