pub struct ToggleButtonsTheme {Show 14 fields
pub color: Option<Color>,
pub selected_color: Option<Color>,
pub disabled_color: Option<Color>,
pub fill_color: Option<WidgetStateProperty<Color>>,
pub border_color: Option<Color>,
pub selected_border_color: Option<Color>,
pub disabled_border_color: Option<Color>,
pub border_width: Option<f32>,
pub border_radius: Option<BorderRadius>,
pub text_style: Option<TextStyle>,
pub min_width: Option<f32>,
pub min_height: Option<f32>,
pub max_width: Option<f32>,
pub max_height: Option<f32>,
}Expand description
Defaults for ToggleButtons.
The three border colours are named apart although the reference defaults all three to
the same value (toggle_buttons.dart:601, :635, :651): a bank is one object and
its outline does not break up because one of its buttons is on, but an application
that wants the chosen pair marked out needs somewhere to say so.
Fields§
§color: Option<Color>What is drawn in a button that is off — its text, its glyph, anything under it that reads the theme for a colour.
selected_color: Option<Color>The same, for a button that is on.
disabled_color: Option<Color>The same, when the bank cannot be pressed.
fill_color: Option<WidgetStateProperty<Color>>A button’s ground, per state. A plain colour — WidgetStateProperty::all —
fills every button rather than only the ones that are on, as the reference’s does.
border_color: Option<Color>The hairline around and beside a button that is off.
selected_border_color: Option<Color>The hairline around and beside a button that is on. A seam between an on button and an off one takes this, from either side.
disabled_border_color: Option<Color>The hairline when the bank cannot be pressed.
border_width: Option<f32>The hairline’s width, around the bank and between its buttons.
border_radius: Option<BorderRadius>The bank’s corners: the buttons at its two ends take a pair each, and the ones between them are square.
text_style: Option<TextStyle>The type any text in the bank takes. Its colour is ignored — that is the three content colours’ to answer, and it depends on the state.
min_width: Option<f32>The smallest a button may be across.
min_height: Option<f32>And down. Untold, both are the tap target.
max_width: Option<f32>The largest. Untold, unbounded.
max_height: Option<f32>Likewise.