website/docs/services/permissionhandler/index.md
import TabItem from '@theme/TabItem'; import Tabs from '@theme/Tabs'; import {ClassAll, CodeExample} from '@site/src/components/crocodocs';
Helps manage runtime permissions in your Flet apps.
It is powered by the Flutter permission_handler package.
| Platform | Windows | macOS | Linux | iOS | Android | Web |
|---|---|---|---|---|---|---|
| Supported | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ |
Add flet-permission-handler to your project dependencies:
requirements.txt or pyproject.toml.
</TabItem>
While the permissions are being requested during runtime, you'll still need to tell the OS which permissions your app might potentially use.
See:
Permission enum, which lists all the supported permissionsSee:
Permission enum, which lists all the supported permissions and their Info.plist keys<CodeExample path={frontMatter.examples + '/example_1/main.py'} language="python" />