pub enum ListTileTitleAlignment {
ThreeLine,
TitleHeight,
Top,
Center,
Bottom,
}Expand description
Defines how ListTile::leading and ListTile::trailing are
vertically aligned relative to the ListTile’s titles
(ListTile::title and ListTile::subtitle).
See also:
ListTile::title_alignment, to configure the title alignment for an individualListTile.ListTileThemeData::title_alignment, to configure the title alignment for all of theListTiles under aListTileTheme.ThemeData::list_tile_theme, to configure theListTileThemefor an entire app.
Variants§
ThreeLine
The top of the ListTile::leading and ListTile::trailing widgets are
placed ListTile::min_vertical_padding below the top of the ListTile::title
if ListTile::is_three_line is true, otherwise they’re centered relative
to the ListTile::title and ListTile::subtitle widgets.
This is the default when ThemeData::use_material3 is true.
TitleHeight
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::use_material3 is false.
Top
The tops of the ListTile::leading and ListTile::trailing widgets are
placed ListTile::min_vertical_padding below the top of the ListTile::title.
Center
The ListTile::leading and ListTile::trailing widgets are
centered relative to the ListTile’s titles.
Bottom
The bottoms of the ListTile::leading and ListTile::trailing widgets are
placed ListTile::min_vertical_padding above the bottom of the ListTile’s
titles.
Trait Implementations§
Source§impl Clone for ListTileTitleAlignment
impl Clone for ListTileTitleAlignment
impl Copy for ListTileTitleAlignment
Source§impl Debug for ListTileTitleAlignment
impl Debug for ListTileTitleAlignment
impl Eq for ListTileTitleAlignment
Source§impl Hash for ListTileTitleAlignment
impl Hash for ListTileTitleAlignment
Source§impl PartialEq for ListTileTitleAlignment
impl PartialEq for ListTileTitleAlignment
impl StructuralPartialEq for ListTileTitleAlignment
Auto Trait Implementations§
impl Forget for ListTileTitleAlignment
impl Freeze for ListTileTitleAlignment
impl Move for ListTileTitleAlignment
impl RefUnwindSafe for ListTileTitleAlignment
impl Send for ListTileTitleAlignment
impl Sync for ListTileTitleAlignment
impl Unpin for ListTileTitleAlignment
impl UnsafeUnpin for ListTileTitleAlignment
impl UnwindSafe for ListTileTitleAlignment
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.