flet icon indicating copy to clipboard operation
flet copied to clipboard

Unknown control: flashlight

Open Andrukva opened this issue 7 months ago • 4 comments

Duplicate Check

  • [X] I have searched the opened issues and there are no duplicates

Describe the bug

When running on a physical device, it gives the error "unknown control: flashlight " and also swears at lambda. I use Windows11, Android Studio, Python 3.12.4 and Android 7. Please tell me how to fix it? Thank you in advance.

Code

import flet as ft

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

ft.app(target=main)

To reproduce

Unknown module flashlight

Expected behavior

No response

Screenshots

No response

Operating System

Windows

Operating system details

Windows 11

Flet version

0.23.2

Regression

I'm not sure / I don't know

Suggestions

No response

Additional details

No response

Andrukva avatar Jul 04 '24 05:07 Andrukva