Flashlight
A control to use FlashLight. Works on iOS and Android. Based on torch_light Flutter widget.
Flashlight control is non-visual and should be added to page.overlay
list.
Packaging
To build your Flet app that uses Flashlight
control add --include-packages flet_flashlight
to flet build
command, for example:
flet build apk --include-packages flet_flashlight
Example
python/controls/utility/flashlight/flashlight-example.py
loading...
Methods
turn_on()
Turns flashlight ON.
turn_off()
Turns flashlight OFF.
toggle()
Toggles the state of flashlight.