-
Notifications
You must be signed in to change notification settings - Fork 584
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
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
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
Labels
bugSomething isn't workingSomething isn't working