Back to Flet

flet-permission-handler

sdk/python/packages/flet-permission-handler/README.md

0.85.0.dev22.0 KB
Original Source

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

Documentation

Detailed documentation to this package can be found here.

Platform Support

PlatformWindowsmacOSLinuxiOSAndroidWeb
Supported

Usage

Installation

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

  • Using uv:

    bash
    uv add flet-permission-handler
    
  • Using pip:

    bash
    pip install flet-permission-handler
    

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

Examples

For examples, see these.