MinimalListTile class

The workhorse row: an 18 px glyph (or a leading tile or avatar), the 14/500 title with an optional caption under it, then a trailing accessory, a mono meta figure and an optional chevron — 44 px tall (dense: 36), padded by the screen gutter so it runs edge to edge.

Rows never draw their own rules: a MinimalListSection divides them, full bleed on the page or inset in a card. selected: true tints the row with MinimalThemeData.selection (the open record, the current match) and announces it; selected: false announces an unselected option of a set (null, the default, is a row that is not one of a set). muted quiets the title to the secondary ink (a done habit, an archived record); destructive inks it in the destructive colour ("Delete habit"). With onTap the whole row is one control with the press wash, Enter/Space and a 2 px focus ring drawn INSIDE its edge — a full-bleed row has no outside to draw on, and a card or a reveal clips it; enabled: false dims it and swallows taps.

A control in the leading or trailing slot (a MinimalStatusIcon with onPressed:, a MinimalSwitch) keeps its whole 44 px target: the row's content line spans the row's full height and its gutters, so the control's margin is never cut off by the row's padding.

The glyph or leading stands centred in a slot of one width, so the title keeps its keyline whatever leads it: an 18 px glyph's slot unless leadingWidth widens it. A list whose rows lead with different kinds (a glyph, a tile, an avatar) gives every row the widest one's width.

below is a second line as widgets rather than words — a mono id and label tags under an issue's title — in the caption register. metaWidth stands meta in a fixed, end-aligned column so an accessory before it (MinimalWeekDots, a sparkline) lines up down the list whatever the figure (4d, 12d). At large text (from MinimalChromeMetrics.rowStackScale) the trailing part and meta drop under the title, as iOS stacks a row's detail at its accessibility sizes.

MinimalListTile(icon: LucideIcons.circleDashed, title: 'Drink water', meta: '10d', onTap: open)
Inheritance

Constructors

MinimalListTile({Key? key, required String title, String? subtitle, Widget? below, IconData? icon, Color? iconColor, Widget? leading, double? leadingWidth, Widget? trailing, String? meta, double? metaWidth, String? metaLabel, VoidCallback? onTap, bool chevron = false, bool destructive = false, bool? selected, bool muted = false, bool dense = false, bool enabled = true, EdgeInsetsGeometry? padding, FocusNode? focusNode, bool autofocus = false})
A list row titled title.
const

Properties

autofocus → bool
Whether it takes keyboard focus when it first appears.
final
below → Widget?
A line of widgets under the title (and under subtitle, when both are given): a mono id beside label tags. Text in it takes the caption register and one line.
final
chevron → bool
Show a chevron affordance (the row pushes a page).
final
dense → bool
The 36 px register for a dense list; a row that presses keeps the tap floor (44 at a finger) whatever the density.
final
destructive → bool
Destructive row: the title and glyph in the destructive colour.
final
enabled → bool
False dims the row and swallows taps (a record the user cannot open right now); announced as disabled.
final
focusNode → FocusNode?
Its focus node, for a caller that moves focus to it; null keeps one of its own.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
The row's 18 px glyph, in the quiet ink unless iconColor says otherwise.
final
iconColor → Color?
Its glyph's ink; null takes the quiet ink.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget?
A leading widget in place of icon: a MinimalIconTile, a MinimalAvatar, a status glyph.
final
leadingWidth → double?
The width of the slot icon or leading stands centred in; a wider one keeps its own width. Null takes an 18 px glyph's, so a 16 px status or priority glyph puts its title where an 18 px glyph's stands. Rows that lead with a glyph, a MinimalIconTile (28) or a MinimalAvatar in one list take the widest one's, so their titles share one keyline.
final
meta → String?
The trailing figure, printed in mono in the quiet ink: 12d, 09:30, €1,284.
final
metaLabel → String?
What a screen reader says for meta when the figure alone is terse: 12-day streak for 12d.
final
metaWidth → double?
A fixed width for meta's column, end-aligned (a longer figure scales down to fit it), so what stands before it lines up from row to row; null prints the figure at its own width.
final
muted → bool
The title in the secondary ink: a record that is done or archived.
final
onTap → VoidCallback?
Opens the row, as Flutter's ListTile.onTap; null leaves it still.
final
padding → EdgeInsetsGeometry?
The row's side padding. Null takes the group's, or on its own the card's row inset (MinimalCard.rowInsetOf) in a card and the screen gutter on the page.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool?
Whether this row is the highlighted one of a set: true tints it and announces selected, false announces an unselected option, null is a row that is not one of a set.
final
subtitle → String?
One caption line under the title.
final
title → String
What the row is.
final
trailing → Widget?
An accessory before meta: a tag, a toggle, a small chart.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited