ListTile
A Fluent list tile: one row of a list, with a title and optional subtitle, leading icon and trailing control.
With a selection_mode, the tile can be selected: a selected tile
shows an accent bar, or a checked checkbox in
MULTIPLE mode.
Example:
fluent.ListTile(
title="Inbox",
subtitle="3 unread messages",
leading=fluent.FluentIcons.MAIL,
selection_mode=fluent.ListTileSelectionMode.SINGLE,
selected=True,
)

Inherits: LayoutControl
Properties
autofocus- Whether this tile should be focused on initial display.leading- An icon or control shown beforetitle.selected- Whether this tile is selected.selection_mode- Whether and how this tile can be selected.subtitle- Secondary text shown belowtitle.title- The main text of this tile.trailing- A control shown at the end of this tile.
Events
on_click- Called when this tile is clicked.on_selection_change- Called when the user selects or deselects this tile.
Example
Fluent ListTile
import flet_fluent_ui as fluent
import flet as ft
FOLDERS = [
("Inbox", fluent.FluentIcons.MAIL_INBOX, "3 unread"),
("Sent", fluent.FluentIcons.SEND, None),
("Archive", fluent.FluentIcons.ARCHIVE, None),
]
def main(page: ft.Page):
page.title = "Fluent ListTile"
def handle_select(e: ft.Event[fluent.ListTile]):
# Single selection: deselect the other folders.
for tile in tiles:
tile.selected = tile is e.control
status.value = f"Folder: {e.control.title}"
tiles = [
fluent.ListTile(
title=name,
subtitle=subtitle,
leading=icon,
selection_mode=fluent.ListTileSelectionMode.SINGLE,
selected=name == "Inbox",
on_selection_change=handle_select,
)
for name, icon, subtitle in FOLDERS
]
status = ft.Text("Folder: Inbox")
page.add(
ft.SafeArea(
content=ft.Column(width=280, controls=[*tiles, status]),
)
)
if __name__ == "__main__":
ft.run(main)

Properties
autofocusclass-attributeinstance-attribute
autofocus: bool = FalseWhether this tile should be focused on initial display.
leadingclass-attributeinstance-attribute
leading: IconDataOrControl | None = NoneAn icon or control shown before title.
selectedclass-attributeinstance-attribute
selected: bool = FalseWhether this tile is selected. Only used when selection_mode is not
NONE.
In SINGLE mode, deselect the
other tiles of the list in on_selection_change.
selection_modeclass-attributeinstance-attribute
selection_mode: ListTileSelectionMode = (
ListTileSelectionMode.NONE
)Whether and how this tile can be selected.
subtitleclass-attributeinstance-attribute
subtitle: StrOrControl | None = NoneEvents
on_clickclass-attributeinstance-attribute
on_click: ControlEventHandler[ListTile] | None = NoneCalled when this tile is clicked.
on_selection_changeclass-attributeinstance-attribute
on_selection_change: (
ControlEventHandler[ListTile] | None
) = NoneCalled when the user selects or deselects this tile.
The data property of the event handler argument
contains the new selected value.