#6854·flet

bug: on_click and on_long_press events of ListTile are not working if ListTile is inside the Row

Author: jimlin-189Created Sep 17, 2026Updated Sep 17, 2026
Labelsbug

Duplicate Check

Describe the bug

No reaction when you click the ListTile

Code sample

Code
python
import flet as ft

def main(page: ft.Page):
    page.title = "ListTile Example"

    page.add(
        ft.SafeArea(
            content=ft.Row(
                controls =[
                    ft.ListTile(
                        title=ft.Text("Two-line"),
                        subtitle=ft.Text("Here is a second title."),
                        on_click=lambda e: print("on click"),
                        on_long_press=lambda e: print("on long press"),
                    ),
                ]
            )
        )
    )


if __name__ == "__main__":
    ft.run(main,view=ft.AppView.WEB_BROWSER)

To reproduce

  1. run the code. 2. click the listTile 3. it should print something but nothing happen

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11 Home 25H2

Flet version

v1.0

Regression

No, it isn't

Suggestions

No response

Logs

Logs
bash
[Paste your logs here]

Additional details

No response