pub trait ButtonStyleGetters {
Show 30 methods
// Required method
fn button_style(&self) -> &ButtonStyle;
// Provided methods
fn text_style(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<TextStyle>>> { ... }
fn background_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... }
fn foreground_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... }
fn overlay_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... }
fn shadow_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... }
fn surface_tint_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... }
fn elevation(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<f64>>> { ... }
fn padding(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<EdgeInsetsGeometry>>> { ... }
fn minimum_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>> { ... }
fn fixed_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>> { ... }
fn maximum_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>> { ... }
fn icon_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>> { ... }
fn icon_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<f64>>> { ... }
fn icon_alignment(&self, app: &mut App) -> Option<IconAlignment> { ... }
fn side(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<BorderSide>>> { ... }
fn shape(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<OutlinedBorderRef>>> { ... }
fn mouse_cursor(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>> { ... }
fn visual_density(&self, app: &mut App) -> Option<VisualDensity> { ... }
fn tap_target_size(&self, app: &mut App) -> Option<MaterialTapTargetSize> { ... }
fn animation_duration(&self, app: &mut App) -> Option<Duration> { ... }
fn enable_feedback(&self, app: &mut App) -> Option<bool> { ... }
fn alignment(&self, app: &mut App) -> Option<AlignmentGeometry> { ... }
fn splash_factory(
&self,
app: &mut App,
) -> Option<InteractiveInkFeatureFactoryRef> { ... }
fn background_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder> { ... }
fn foreground_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder> { ... }
fn size_variant(&self, app: &mut App) -> Option<ButtonSizeVariant> { ... }
fn icon_button_width(&self, app: &mut App) -> Option<IconButtonWidthVariant> { ... }
fn shape_variant(&self, app: &mut App) -> Option<ButtonShapeVariant> { ... }
fn copy_with(&self, app: &mut App) -> ButtonStyle { ... }
}Expand description
Dart’s getters of ButtonStyle: the theme data answers with its fields, and a defaults
subclass (Dart’s _...Defaults...(context)) computes the ones it overrides when they
are read.
Required Methods§
The fields Dart’s constructor sets: the struct itself, or the super(...)
arguments a defaults struct keeps.
Provided Methods§
Sourcefn text_style(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<TextStyle>>>
fn text_style( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<TextStyle>>>
Dart’s text_style getter.
Sourcefn background_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn background_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s background_color getter.
Sourcefn foreground_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn foreground_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s foreground_color getter.
Sourcefn overlay_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn overlay_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s overlay_color getter.
Sourcefn shadow_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn shadow_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s shadow_color getter.
Sourcefn surface_tint_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn surface_tint_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s surface_tint_color getter.
Sourcefn elevation(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<f64>>>
fn elevation( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<f64>>>
Dart’s elevation getter.
Sourcefn padding(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<EdgeInsetsGeometry>>>
fn padding( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<EdgeInsetsGeometry>>>
Dart’s padding getter.
Sourcefn minimum_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>>
fn minimum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>
Dart’s minimum_size getter.
Sourcefn fixed_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>>
fn fixed_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>
Dart’s fixed_size getter.
Sourcefn maximum_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Size>>>
fn maximum_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Size>>>
Dart’s maximum_size getter.
Sourcefn icon_color(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<Color>>>
fn icon_color( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<Color>>>
Dart’s icon_color getter.
Sourcefn icon_size(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<f64>>>
fn icon_size( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<f64>>>
Dart’s icon_size getter.
Sourcefn icon_alignment(&self, app: &mut App) -> Option<IconAlignment>
fn icon_alignment(&self, app: &mut App) -> Option<IconAlignment>
Dart’s icon_alignment getter.
Sourcefn side(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<BorderSide>>>
fn side( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<BorderSide>>>
Dart’s side getter.
Sourcefn shape(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<OutlinedBorderRef>>>
fn shape( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<OutlinedBorderRef>>>
Dart’s shape getter.
Sourcefn mouse_cursor(
&self,
app: &mut App,
) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>
fn mouse_cursor( &self, app: &mut App, ) -> Option<WidgetStatePropertyRef<Option<MouseCursorRef>>>
Dart’s mouse_cursor getter.
Sourcefn visual_density(&self, app: &mut App) -> Option<VisualDensity>
fn visual_density(&self, app: &mut App) -> Option<VisualDensity>
Dart’s visual_density getter.
Sourcefn tap_target_size(&self, app: &mut App) -> Option<MaterialTapTargetSize>
fn tap_target_size(&self, app: &mut App) -> Option<MaterialTapTargetSize>
Dart’s tap_target_size getter.
Sourcefn animation_duration(&self, app: &mut App) -> Option<Duration>
fn animation_duration(&self, app: &mut App) -> Option<Duration>
Dart’s animation_duration getter.
Sourcefn enable_feedback(&self, app: &mut App) -> Option<bool>
fn enable_feedback(&self, app: &mut App) -> Option<bool>
Dart’s enable_feedback getter.
Sourcefn alignment(&self, app: &mut App) -> Option<AlignmentGeometry>
fn alignment(&self, app: &mut App) -> Option<AlignmentGeometry>
Dart’s alignment getter.
Sourcefn splash_factory(
&self,
app: &mut App,
) -> Option<InteractiveInkFeatureFactoryRef>
fn splash_factory( &self, app: &mut App, ) -> Option<InteractiveInkFeatureFactoryRef>
Dart’s splash_factory getter.
Sourcefn background_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder>
fn background_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder>
Dart’s background_builder getter.
Sourcefn foreground_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder>
fn foreground_builder(&self, app: &mut App) -> Option<ButtonLayerBuilder>
Dart’s foreground_builder getter.
Sourcefn size_variant(&self, app: &mut App) -> Option<ButtonSizeVariant>
fn size_variant(&self, app: &mut App) -> Option<ButtonSizeVariant>
Dart’s size_variant getter.
Dart’s icon_button_width getter.
Sourcefn shape_variant(&self, app: &mut App) -> Option<ButtonShapeVariant>
fn shape_variant(&self, app: &mut App) -> Option<ButtonShapeVariant>
Dart’s shape_variant getter.
Sourcefn copy_with(&self, app: &mut App) -> ButtonStyle
fn copy_with(&self, app: &mut App) -> ButtonStyle
Dart’s copyWith() with no arguments: a plain value holding what every getter
answers, for the caller’s setters to change.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".