Skip to content

Unknown control: flashlight #3599

Description

@Andrukva

Duplicate Check

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions