flet-permission-handler#
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
Platform Support#
This package supports the following platforms:
Platform | Supported |
---|---|
Windows | ✅ |
macOS | ❌ |
Linux | ❌ |
iOS | ✅ |
Android | ✅ |
Web | ✅ |
Usage#
Installation#
To install the flet-permission-handler
package and add it to your project dependencies:
- After this, you will have to manually add this package to your
requirements.txt
orpyproject.toml
.
Declaring Permissions#
On mobile platforms, while the permissions are being requested during runtime, you'll still need to tell the respective OS which permissions your app might potentially use.
See this guide on how to declare permissions.
Examples#
See these.