Skip to main content

ListTileThemeData

Struct ListTileThemeData 

Source
pub struct ListTileThemeData {
Show 22 fields pub dense: Option<bool>, pub shape: Option<ShapeBorderRef>, pub style: Option<ListTileStyle>, pub selected_color: Option<Color>, pub icon_color: Option<AnyColor>, pub text_color: Option<AnyColor>, pub title_text_style: Option<TextStyle>, pub subtitle_text_style: Option<TextStyle>, pub leading_and_trailing_text_style: Option<TextStyle>, pub content_padding: Option<EdgeInsetsGeometry>, pub tile_color: Option<Color>, pub selected_tile_color: Option<Color>, pub horizontal_title_gap: Option<f64>, pub min_vertical_padding: Option<f64>, pub min_leading_width: Option<f64>, pub min_tile_height: Option<f64>, pub enable_feedback: Option<bool>, pub mouse_cursor: Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>, pub visual_density: Option<VisualDensity>, pub title_alignment: Option<ListTileTitleAlignment>, pub control_affinity: Option<ListTileControlAffinity>, pub is_three_line: Option<bool>,
}
Expand description

Used with ListTileTheme to define default property values for descendant ListTile widgets, as well as classes that build ListTiles, like CheckboxListTile, RadioListTile, and SwitchListTile.

Descendant widgets obtain the current ListTileThemeData object using ListTileTheme::of. Instances of ListTileThemeData can be customized with ListTileThemeData::copy_with.

A ListTileThemeData is often specified as part of the overall Theme with ThemeData::list_tile_theme.

All ListTileThemeData properties are None by default. When a theme property is None, the ListTile will provide its own default based on the overall Theme’s text theme and color scheme. See the individual ListTile properties for details.

The Drawer widget specifies a list tile theme for its children that defines style to be ListTileStyle::Drawer.

See also:

  • ThemeData, which describes the overall theme information for the application.

Fields§

§dense: Option<bool>

Overrides the default value of ListTile::dense.

§shape: Option<ShapeBorderRef>

Overrides the default value of ListTile::shape.

§style: Option<ListTileStyle>

Overrides the default value of ListTile::style.

§selected_color: Option<Color>

Overrides the default value of ListTile::selected_color.

§icon_color: Option<AnyColor>

Overrides the default value of ListTile::icon_color.

§text_color: Option<AnyColor>

Overrides the default value of ListTile::text_color.

§title_text_style: Option<TextStyle>

Overrides the default value of ListTile::title_text_style.

§subtitle_text_style: Option<TextStyle>

Overrides the default value of ListTile::subtitle_text_style.

§leading_and_trailing_text_style: Option<TextStyle>

Overrides the default value of ListTile::leading_and_trailing_text_style.

§content_padding: Option<EdgeInsetsGeometry>

Overrides the default value of ListTile::content_padding.

§tile_color: Option<Color>

Overrides the default value of ListTile::tile_color.

§selected_tile_color: Option<Color>

Overrides the default value of ListTile::selected_tile_color.

§horizontal_title_gap: Option<f64>

Overrides the default value of ListTile::horizontal_title_gap.

§min_vertical_padding: Option<f64>

Overrides the default value of ListTile::min_vertical_padding.

§min_leading_width: Option<f64>

Overrides the default value of ListTile::min_leading_width.

§min_tile_height: Option<f64>

Overrides the default value of ListTile::min_tile_height.

§enable_feedback: Option<bool>

Overrides the default value of ListTile::enable_feedback.

§mouse_cursor: Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>

If specified, overrides the default value of ListTile::mouse_cursor.

§visual_density: Option<VisualDensity>

If specified, overrides the default value of ListTile::visual_density.

§title_alignment: Option<ListTileTitleAlignment>

If specified, overrides the default value of ListTile::title_alignment.

§control_affinity: Option<ListTileControlAffinity>

If specified, overrides the default value of CheckboxListTile::control_affinity or ExpansionTile::control_affinity or SwitchListTile::control_affinity or RadioListTile::control_affinity.

§is_three_line: Option<bool>

If specified, overrides the default value of ListTile::is_three_line or CheckboxListTile::is_three_line or RadioListTile::is_three_line or SwitchListTile::is_three_line.

Implementations§

Source§

impl ListTileThemeData

Source

pub fn new() -> ListTileThemeData

Creates a ListTileThemeData; Dart’s optional named arguments are the fluent setters.

Source

pub fn dense(self, dense: impl Into<bool>) -> ListTileThemeData

Dart ListTileThemeData(dense:).

Source

pub fn shape(self, shape: impl Into<ShapeBorderRef>) -> ListTileThemeData

Dart ListTileThemeData(shape:).

Source

pub fn style(self, style: impl Into<ListTileStyle>) -> ListTileThemeData

Dart ListTileThemeData(style:).

Source

pub fn selected_color( self, selected_color: impl Into<Color>, ) -> ListTileThemeData

Dart ListTileThemeData(selectedColor:).

Source

pub fn icon_color(self, icon_color: impl Into<AnyColor>) -> ListTileThemeData

Dart ListTileThemeData(iconColor:).

Source

pub fn text_color(self, text_color: impl Into<AnyColor>) -> ListTileThemeData

Dart ListTileThemeData(textColor:).

Source

pub fn title_text_style( self, title_text_style: impl Into<TextStyle>, ) -> ListTileThemeData

Dart ListTileThemeData(titleTextStyle:).

Source

pub fn subtitle_text_style( self, subtitle_text_style: impl Into<TextStyle>, ) -> ListTileThemeData

Dart ListTileThemeData(subtitleTextStyle:).

Source

pub fn leading_and_trailing_text_style( self, leading_and_trailing_text_style: impl Into<TextStyle>, ) -> ListTileThemeData

Dart ListTileThemeData(leadingAndTrailingTextStyle:).

Source

pub fn content_padding( self, content_padding: impl Into<EdgeInsetsGeometry>, ) -> ListTileThemeData

Dart ListTileThemeData(contentPadding:).

Source

pub fn tile_color(self, tile_color: impl Into<Color>) -> ListTileThemeData

Dart ListTileThemeData(tileColor:).

Source

pub fn selected_tile_color( self, selected_tile_color: impl Into<Color>, ) -> ListTileThemeData

Dart ListTileThemeData(selectedTileColor:).

Source

pub fn horizontal_title_gap( self, horizontal_title_gap: impl Into<f64>, ) -> ListTileThemeData

Dart ListTileThemeData(horizontalTitleGap:).

Source

pub fn min_vertical_padding( self, min_vertical_padding: impl Into<f64>, ) -> ListTileThemeData

Dart ListTileThemeData(minVerticalPadding:).

Source

pub fn min_leading_width( self, min_leading_width: impl Into<f64>, ) -> ListTileThemeData

Dart ListTileThemeData(minLeadingWidth:).

Source

pub fn min_tile_height( self, min_tile_height: impl Into<f64>, ) -> ListTileThemeData

Dart ListTileThemeData(minTileHeight:).

Source

pub fn enable_feedback( self, enable_feedback: impl Into<bool>, ) -> ListTileThemeData

Dart ListTileThemeData(enableFeedback:).

Source

pub fn mouse_cursor( self, mouse_cursor: impl Into<WidgetStatePropertyRef<Option<MouseCursorRef>>>, ) -> ListTileThemeData

Dart ListTileThemeData(mouseCursor:).

Source

pub fn visual_density( self, visual_density: impl Into<VisualDensity>, ) -> ListTileThemeData

Dart ListTileThemeData(visualDensity:).

Source

pub fn title_alignment( self, title_alignment: impl Into<ListTileTitleAlignment>, ) -> ListTileThemeData

Dart ListTileThemeData(titleAlignment:).

Source

pub fn control_affinity( self, control_affinity: impl Into<ListTileControlAffinity>, ) -> ListTileThemeData

Dart ListTileThemeData(controlAffinity:).

Source

pub fn is_three_line(self, is_three_line: impl Into<bool>) -> ListTileThemeData

Dart ListTileThemeData(isThreeLine:).

Source

pub fn copy_with(&self) -> ListTileThemeData

Creates a copy of this object with the given fields replaced with the new values.

Dart’s named arguments are the fluent setters on the copy (data.copy_with().dense(true)).

Source

pub fn lerp( a: Option<&ListTileThemeData>, b: Option<&ListTileThemeData>, t: f64, ) -> Option<ListTileThemeData>

Linearly interpolate between ListTileThemeData objects.

Trait Implementations§

Source§

impl Clone for ListTileThemeData

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListTileThemeData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListTileThemeData

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Diagnosticable for ListTileThemeData

Source§

fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)

Add additional properties associated with the node.
Source§

fn type_name(&self) -> &'static str

Dart’s Object.runtimeType as diagnostics print it: the last segment of the Rust type path, without generic arguments.
Source§

fn identity_hash(&self) -> u64

Dart’s Object.hashCode as diagnostics print it: the object’s address.
Source§

fn to_string_short(&self) -> String

A brief description of this object, usually just the type and the hash.
Source§

fn to_diagnostics_node(&self) -> DiagnosticableNode

Returns a debug representation of the object used by debugging tools and by DiagnosticsNode::to_string_deep.
Source§

fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode

Dart toDiagnosticsNode(name:, style:).
Source§

fn to_string(&self) -> String

Dart’s toString: a single-line description with properties and no children. Read more
Source§

fn to_string_at(&self, min_level: DiagnosticLevel) -> String

Dart’s toString(minLevel:).
Source§

impl Display for ListTileThemeData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ListTileThemeDataGetters for ListTileThemeData

Source§

fn list_tile_theme_data(&self) -> &ListTileThemeData

The fields Dart’s constructor sets: the struct itself, or the super(...) arguments a defaults struct keeps.
Source§

fn dense(&self, app: &mut App) -> Option<bool>

Dart’s dense getter.
Source§

fn shape(&self, app: &mut App) -> Option<ShapeBorderRef>

Dart’s shape getter.
Source§

fn style(&self, app: &mut App) -> Option<ListTileStyle>

Dart’s style getter.
Source§

fn selected_color(&self, app: &mut App) -> Option<Color>

Dart’s selected_color getter.
Source§

fn icon_color(&self, app: &mut App) -> Option<AnyColor>

Dart’s icon_color getter.
Source§

fn text_color(&self, app: &mut App) -> Option<AnyColor>

Dart’s text_color getter.
Source§

fn title_text_style(&self, app: &mut App) -> Option<TextStyle>

Dart’s title_text_style getter.
Source§

fn subtitle_text_style(&self, app: &mut App) -> Option<TextStyle>

Dart’s subtitle_text_style getter.
Source§

fn leading_and_trailing_text_style(&self, app: &mut App) -> Option<TextStyle>

Dart’s leading_and_trailing_text_style getter.
Source§

fn content_padding(&self, app: &mut App) -> Option<EdgeInsetsGeometry>

Dart’s content_padding getter.
Source§

fn tile_color(&self, app: &mut App) -> Option<Color>

Dart’s tile_color getter.
Source§

fn selected_tile_color(&self, app: &mut App) -> Option<Color>

Dart’s selected_tile_color getter.
Source§

fn horizontal_title_gap(&self, app: &mut App) -> Option<f64>

Dart’s horizontal_title_gap getter.
Source§

fn min_vertical_padding(&self, app: &mut App) -> Option<f64>

Dart’s min_vertical_padding getter.
Source§

fn min_leading_width(&self, app: &mut App) -> Option<f64>

Dart’s min_leading_width getter.
Source§

fn min_tile_height(&self, app: &mut App) -> Option<f64>

Dart’s min_tile_height getter.
Source§

fn enable_feedback(&self, app: &mut App) -> Option<bool>

Dart’s enable_feedback getter.
Source§

fn mouse_cursor( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>

Dart’s mouse_cursor getter.
Source§

fn visual_density(&self, app: &mut App) -> Option<VisualDensity>

Dart’s visual_density getter.
Source§

fn title_alignment(&self, app: &mut App) -> Option<ListTileTitleAlignment>

Dart’s title_alignment getter.
Source§

fn control_affinity(&self, app: &mut App) -> Option<ListTileControlAffinity>

Dart’s control_affinity getter.
Source§

fn is_three_line(&self, app: &mut App) -> Option<bool>

Dart’s is_three_line getter.
Source§

fn copy_with(&self, app: &mut App) -> ListTileThemeData

Dart’s copyWith() with no arguments: a plain value holding what every getter answers, for the caller’s setters to change.
Source§

impl PartialEq for ListTileThemeData

Source§

fn eq(&self, other: &ListTileThemeData) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for ListTileThemeData

§

impl !Send for ListTileThemeData

§

impl !Sync for ListTileThemeData

§

impl !UnwindSafe for ListTileThemeData

§

impl Forget for ListTileThemeData

§

impl Freeze for ListTileThemeData

§

impl Move for ListTileThemeData

§

impl Unpin for ListTileThemeData

§

impl UnsafeUnpin for ListTileThemeData

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>