pub struct ButtonTheme {Show 15 fields
pub elevated_style: Option<ButtonStyle>,
pub filled_style: Option<ButtonStyle>,
pub outlined_style: Option<ButtonStyle>,
pub text_button_style: Option<ButtonStyle>,
pub shape: Option<ShapeBorder>,
pub color: Option<Color>,
pub label_color: Option<Color>,
pub label_style: Option<TextStyle>,
pub border_color: Option<Color>,
pub border_width: Option<f32>,
pub radius: Option<BorderRadius>,
pub padding: Option<f32>,
pub height: Option<f32>,
pub min_width: Option<f32>,
pub elevation: Option<f32>,
}Expand description
Defaults for Button: a style for each kind of button — the
reference’s ElevatedButtonTheme, FilledButtonTheme, OutlinedButtonTheme and
TextButtonTheme — and, under them, plain values for every kind (milestone 632).
Fields§
§elevated_style: Option<ButtonStyle>How an elevated button looks, state by state.
filled_style: Option<ButtonStyle>How a filled button looks — tonal and danger ones included, as the reference’s tonal button shares the filled button’s theme.
outlined_style: Option<ButtonStyle>How an outlined button looks.
How a text button looks.
shape: Option<ShapeBorder>What shape it is (shape_border.dart), over the plain radius below:
a button’s, whose default is a pill (button_style.dart). Unset, the widget decides.
color: Option<Color>The surface under the label, whatever the variant would have used.
label_color: Option<Color>The label’s colour.
label_style: Option<TextStyle>The label’s type.
border_color: Option<Color>The outline’s colour.
border_width: Option<f32>Its thickness; 0.0 removes it.
radius: Option<BorderRadius>The corner radii. Unset, a button is a stadium.
padding: Option<f32>The room either side of the label.
height: Option<f32>The button’s height.
min_width: Option<f32>The narrowest it will be, however short its label.
elevation: Option<f32>How far it sits off the surface, in every state. Unset, the variant’s own
heights, which move with the state — see Button::elevation.