pub struct FilledButtonThemeData {
pub style: Option<ButtonStyle>,
}Expand description
A ButtonStyle that overrides the default appearance of
FilledButtons when it’s used with FilledButtonTheme or with the
overall Theme’s ThemeData::filled_button_theme.
The style’s properties override FilledButton’s default style,
i.e. the ButtonStyle returned by FilledButton::default_style_of. Only
the style’s non-null property values or resolved non-null
WidgetStateProperty values are used.
See also:
FilledButtonTheme, the theme which is configured with this class.FilledButton::default_style_of, which returns the defaultButtonStylefor text buttons.FilledButton::style_from, which converts simple values into aButtonStylethat’s consistent withFilledButton’s defaults.WidgetStateProperty::resolve, “resolve” a material state property to a simple value based on a set ofWidgetStates.ThemeData::filled_button_theme, which can be used to override the defaultButtonStyleforFilledButtons below the overallTheme.
Fields§
§style: Option<ButtonStyle>Overrides for FilledButton’s default style.
Non-null properties or non-null resolved WidgetStateProperty
values override the ButtonStyle returned by
FilledButton::default_style_of.
If style is null, then this theme doesn’t override anything.
Implementations§
Source§impl FilledButtonThemeData
impl FilledButtonThemeData
Sourcepub fn new() -> FilledButtonThemeData
pub fn new() -> FilledButtonThemeData
Creates an FilledButtonThemeData.
The style may be null.
Sourcepub fn style(self, style: ButtonStyle) -> FilledButtonThemeData
pub fn style(self, style: ButtonStyle) -> FilledButtonThemeData
Dart FilledButtonThemeData(style:).
Sourcepub fn lerp(
a: Option<&FilledButtonThemeData>,
b: Option<&FilledButtonThemeData>,
t: f64,
) -> Option<FilledButtonThemeData>
pub fn lerp( a: Option<&FilledButtonThemeData>, b: Option<&FilledButtonThemeData>, t: f64, ) -> Option<FilledButtonThemeData>
Linearly interpolate between two filled button themes.
Trait Implementations§
Source§impl Clone for FilledButtonThemeData
impl Clone for FilledButtonThemeData
Source§impl Debug for FilledButtonThemeData
impl Debug for FilledButtonThemeData
Source§impl Default for FilledButtonThemeData
impl Default for FilledButtonThemeData
Source§impl Diagnosticable for FilledButtonThemeData
impl Diagnosticable for FilledButtonThemeData
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Object.runtimeType as diagnostics print it: the last segment of
the Rust type path, without generic arguments.Source§fn identity_hash(&self) -> u64
fn identity_hash(&self) -> u64
Object.hashCode as diagnostics print it: the object’s address.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Source§fn to_diagnostics_node(&self) -> DiagnosticableNode
fn to_diagnostics_node(&self) -> DiagnosticableNode
DiagnosticsNode::to_string_deep.Source§fn to_diagnostics_node_with(
&self,
name: Option<String>,
style: Option<DiagnosticsTreeStyle>,
) -> DiagnosticableNode
fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode
toDiagnosticsNode(name:, style:).Source§fn to_string(&self) -> String
fn to_string(&self) -> String
toString: a single-line description with properties and no
children. Read moreSource§fn to_string_at(&self, min_level: DiagnosticLevel) -> String
fn to_string_at(&self, min_level: DiagnosticLevel) -> String
toString(minLevel:).