Reference

CupertinoListTile

CupertinoListTile

CupertinoListTile control. Build it with the cupertino_list_tile helper.

Example

cupertino_list_tile(
  title: text("Title"),
  subtitle: text("Subtitle"),
  url: "https://example.com",
  leading: icon("menu"),
  on_click: ->(event) {}
)

Properties

  • additional_info
  • bgcolor — Background color.
  • bgcolor_activated
  • leading — Control placed before the main content (e.g. an icon or avatar).
  • leading_size
  • leading_to_title
  • notched
  • padding — Inner spacing between the border and the content.
  • subtitle — The control shown as the secondary line below the title.
  • title — The control shown as the title.
  • toggle_inputs
  • trailing — Control placed after the main content.
  • url — URL the control loads or links to.

Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).

Events

  • on_animation_end — Fired when an animation completes.
  • on_click — Fired when the control is clicked/tapped.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: cupertinos
  • Widget type: cupertinolisttile
  • Helper: cupertino_list_tile