ListTileTitleAlignment enum
Defines how ListTile.leading and ListTile.trailing are vertically aligned relative to the ListTile's titles (ListTile.title and ListTile.subtitle).
See also:
- ListTile.titleAlignment, to configure the title alignment for an individual ListTile.
- ListTileThemeData.titleAlignment, to configure the title alignment for all of the ListTiles under a ListTileTheme.
- ThemeData.listTileTheme, to configure the ListTileTheme for an entire app.
Values
- threeLine → const ListTileTitleAlignment
-
The top of the ListTile.leading and ListTile.trailing widgets are placed ListTile.minVerticalPadding below the top of the ListTile.title if ListTile.isThreeLine is true, otherwise they're centered relative to the ListTile.title and ListTile.subtitle widgets.
This is the default when ThemeData.useMaterial3 is true.
- titleHeight → const ListTileTitleAlignment
-
The tops of the ListTile.leading and ListTile.trailing widgets are placed 16 pixels below the top of the ListTile.title widget, if the ListTile's overall height is greater than 72, otherwise the ListTile.trailing widget is centered relative to the ListTile.title and ListTile.subtitle widgets, and the ListTile.leading widget is 16 pixels below the top of ListTile.title, or center-aligned with ListTile.title, whichever makes the ListTile.leading closer to the top edge of ListTile.title.
This is the default when ThemeData.useMaterial3 is false.
- top → const ListTileTitleAlignment
-
The tops of the ListTile.leading and ListTile.trailing widgets are placed ListTile.minVerticalPadding below the top of the ListTile.title.
- center → const ListTileTitleAlignment
-
The ListTile.leading and ListTile.trailing widgets are centered relative to the ListTile's titles.
- bottom → const ListTileTitleAlignment
-
The bottoms of the ListTile.leading and ListTile.trailing widgets are placed ListTile.minVerticalPadding above the bottom of the ListTile's titles.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ListTileTitleAlignment> - A constant List of the values in this enum, in order of their declaration.