Metadata-Version: 2.2
Name: flet-flashlight
Version: 0.1.0.dev1
Summary: Flashlight control for Flet
Author-email: Flet contributors <hello@flet.dev>
Project-URL: Homepage, https://flet.dev
Project-URL: Documentation, https://flet.dev/docs/controls/flashlight
Project-URL: Repository, https://github.com/flet-dev/flet-flashlight
Project-URL: Issues, https://github.com/flet-dev/flet-flashlight/issues
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: flet>=0.25.2

# Flashlight control for Flet

`Flashlight` control for Flet.

## Usage

Add `flet-flashlight` as dependency (`pyproject.toml` or `requirements.txt`) to your Flet project.

## Example

```py

import flet as ft

import flet_flashlight as ffl

def main(page: ft.Page):
    flashlight = ffl.Flashlight()
    page.overlay.append(flashlight)
    page.add(
        ft.TextButton("toggle", on_click=lambda _: flashlight.toggle())
    )

ft.app(main)
```
