pub struct OutlinedButtonThemeData {
pub style: Option<ButtonStyle>,
}Expand description
A ButtonStyle that overrides the default appearance of
OutlinedButtons when it’s used with OutlinedButtonTheme or with the
overall Theme’s ThemeData::outlined_button_theme.
The style’s properties override OutlinedButton’s default style,
i.e. the ButtonStyle returned by OutlinedButton::default_style_of. Only
the style’s non-null property values or resolved non-null
WidgetStateProperty values are used.
See also:
OutlinedButtonTheme, the theme which is configured with this class.OutlinedButton::default_style_of, which returns the defaultButtonStylefor outlined buttons.OutlinedButton::style_from, which converts simple values into aButtonStylethat’s consistent withOutlinedButton’s defaults.WidgetStateProperty::resolve, “resolve” a material state property to a simple value based on a set ofWidgetStates.ThemeData::outlined_button_theme, which can be used to override the defaultButtonStyleforOutlinedButtons below the overallTheme.
Fields§
§style: Option<ButtonStyle>Overrides for OutlinedButton’s default style.
Non-null properties or non-null resolved WidgetStateProperty
values override the ButtonStyle returned by
OutlinedButton::default_style_of.
If style is null, then this theme doesn’t override anything.
Implementations§
Source§impl OutlinedButtonThemeData
impl OutlinedButtonThemeData
Sourcepub fn new() -> OutlinedButtonThemeData
pub fn new() -> OutlinedButtonThemeData
Creates a OutlinedButtonThemeData.
The style may be null.
Sourcepub fn style(self, style: ButtonStyle) -> OutlinedButtonThemeData
pub fn style(self, style: ButtonStyle) -> OutlinedButtonThemeData
Dart OutlinedButtonThemeData(style:).
Sourcepub fn lerp(
a: Option<&OutlinedButtonThemeData>,
b: Option<&OutlinedButtonThemeData>,
t: f64,
) -> Option<OutlinedButtonThemeData>
pub fn lerp( a: Option<&OutlinedButtonThemeData>, b: Option<&OutlinedButtonThemeData>, t: f64, ) -> Option<OutlinedButtonThemeData>
Linearly interpolate between two outlined button themes.
Trait Implementations§
Source§impl Clone for OutlinedButtonThemeData
impl Clone for OutlinedButtonThemeData
Source§impl Debug for OutlinedButtonThemeData
impl Debug for OutlinedButtonThemeData
Source§impl Default for OutlinedButtonThemeData
impl Default for OutlinedButtonThemeData
Source§impl Diagnosticable for OutlinedButtonThemeData
impl Diagnosticable for OutlinedButtonThemeData
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:).