logo
pub struct ButtonStyle {
Show 19 fields pub text_style: MaterialStateProperty<TextStyle>, pub background_color: MaterialStateProperty<Color>, pub foreground_color: MaterialStateProperty<Color>, pub overlay_color: MaterialStateProperty<Color>, pub shadow_color: MaterialStateProperty<Color>, pub elevation: MaterialStateProperty<f32>, pub padding: MaterialStateProperty<Option<Box<dyn EdgeInsetsGeometry>>>, pub minimum_size: MaterialStateProperty<Size>, pub fixed_size: MaterialStateProperty<Size>, pub maximum_size: MaterialStateProperty<Size>, pub side: MaterialStateProperty<BorderSide>, pub shape: MaterialStateProperty<Option<Box<dyn OutlinedBorder>>>, pub mouse_cursor: MaterialStateProperty<MouseCursor>, pub visual_density: VisualDensity, pub tap_target_size: MaterialTapTargetSize, pub animation_duration: Duration, pub enable_feedback: bool, pub alignment: Box<dyn AlignmentGeometry>, pub splash_factory: InteractiveInkFeatureFactory,
}

Fields

text_style: MaterialStateProperty<TextStyle>background_color: MaterialStateProperty<Color>foreground_color: MaterialStateProperty<Color>overlay_color: MaterialStateProperty<Color>shadow_color: MaterialStateProperty<Color>elevation: MaterialStateProperty<f32>padding: MaterialStateProperty<Option<Box<dyn EdgeInsetsGeometry>>>minimum_size: MaterialStateProperty<Size>fixed_size: MaterialStateProperty<Size>maximum_size: MaterialStateProperty<Size>side: MaterialStateProperty<BorderSide>shape: MaterialStateProperty<Option<Box<dyn OutlinedBorder>>>mouse_cursor: MaterialStateProperty<MouseCursor>visual_density: VisualDensitytap_target_size: MaterialTapTargetSizeanimation_duration: Durationenable_feedback: boolalignment: Box<dyn AlignmentGeometry>splash_factory: InteractiveInkFeatureFactory

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

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

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.