Skip to content

bug: flet 0.70.0.dev6370 keeps showing "Working" during startup. #5726

@lunengcheng

Description

@lunengcheng

Duplicate Check

Describe the bug

When I use the Flet version 0.70.0.dev6370 with PyCharm 2025.1.3 and Python 3.10, after opening the following code, I often encounter a situation where the interface keeps loading with "Working". After closing and restarting, it sometimes starts normally. May I ask everyone what the problem is? Thank you very much.

Code sample

import flet as ft

def main(page: ft.Page):
page.title = "Flet counter example"
page.vertical_alignment = ft.MainAxisAlignment.CENTER

input = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)

def minus_click(e):
    input.value = str(int(input.value) - 1)
    page.update()

def plus_click(e):
    input.value = str(int(input.value) + 1)
    page.update()

page.add(
    ft.Row(
        alignment=ft.Alignment.CENTER,
        controls=[
            ft.IconButton(ft.Icons.REMOVE, on_click=minus_click),
            input,
            ft.IconButton(ft.Icons.ADD, on_click=plus_click),
        ],
    )
)

ft.run(main)

To reproduce

Image

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

win11

Flet version

0.70.0.dev6370

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions