Duplicate Check
Describe the bug
When toggle_inputs=True is set on a ListTile that has a trailing Checkbox, tapping/clicking the tile toggles the checkbox only on alternate clicks. The first click works, the second does nothing, the third works again, etc. It should toggle on every click.
Code sample
Code
import flet as ft
def main(page):
page.title = "ListTile Examples"
page.add(
ft.ListTile(
"ListTileStyle with toggle inputs",
subtitle="List",
leading=ft.Icon(ft.Icons.STAR),
trailing=ft.Checkbox(),
bgcolor=ft.Colors.LIGHT_BLUE_ACCENT_100,
style=ft.ListTileStyle.LIST,
toggle_inputs=True,
),
)
ft.run(main)
To reproduce
Run the snippet below.
Click (or tap) anywhere on the ListTile repeatedly.
Observe that the Checkbox changes state only on every other click.
Expected behavior
Each click on the ListTile should toggle the trailing Checkbox state (checked ↔ unchecked) every time, not only on alternate clicks.
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
macOS
Flet version
0.69.0
Regression
No, it isn't
Suggestions
No response
Logs
Logs
Additional details
No response
Duplicate Check
Describe the bug
When
toggle_inputs=Trueis set on a ListTile that has a trailing Checkbox, tapping/clicking the tile toggles the checkbox only on alternate clicks. The first click works, the second does nothing, the third works again, etc. It should toggle on every click.Code sample
Code
To reproduce
Run the snippet below.
Click (or tap) anywhere on the ListTile repeatedly.
Observe that the Checkbox changes state only on every other click.
Expected behavior
Each click on the ListTile should toggle the trailing Checkbox state (checked ↔ unchecked) every time, not only on alternate clicks.
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
macOS
Flet version
0.69.0
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]Additional details
No response