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