Skip to content

flet-permission-handler#

pypi downloads license

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:

uv add flet-permission-handler
pip install flet-permission-handler  # (1)!
  1. After this, you will have to manually add this package to your requirements.txt or pyproject.toml.
poetry add flet-permission-handler

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.