A Flet extension that simplifies working with device permissions.
It is based on the permission_handler Flutter package and brings similar functionality to Flet, including:
- Requesting permissions at runtime
- Checking the current permission status (e.g., granted, denied)
- Redirecting users to system settings to manually grant permissions
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-permission-handler package and add it to your project dependencies:
-
Using
uv:uv add flet-permission-handler
-
Using
pip:pip install flet-permission-handler
After this, you will have to manually add this package to your
requirements.txtorpyproject.toml. -
Using
poetry:poetry add flet-permission-handler
For examples, see these.