Back to Flet

flet-flashlight

sdk/python/packages/flet-flashlight/README.md

0.85.0.dev21.7 KB
Original Source

flet-flashlight

A Flet extension to manage the device torch/flashlight.

It is based on the flashlight Flutter package.

Important: Add Flashlight instances to page.services before calling toggle or other methods.

Documentation

Detailed documentation to this package can be found here.

Platform Support

PlatformWindowsmacOSLinuxiOSAndroidWeb
Supported

Usage

Installation

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

  • Using uv:

    bash
    uv add flet-flashlight
    
  • Using pip:

    bash
    pip install flet-flashlight
    

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

Examples

For examples, see these.