pub struct CheckboxTheme {
pub fill_color: Option<Color>,
pub check_color: Option<Color>,
pub border_color: Option<Color>,
pub active_border_color: Option<Color>,
pub radius: Option<f32>,
pub label_color: Option<Color>,
pub tap_target: Option<TapTarget>,
pub overlay_color: Option<WidgetStateProperty<Color>>,
pub splash_radius: Option<f32>,
pub visual_density: Option<VisualDensity>,
}Expand description
Defaults for Checkbox.
A checkbox is two controls wearing one name: ticked it is a filled box with a mark punched through it, unticked it is an outline and nothing else. The colours do not carry over between the two, which is why they are named apart rather than as one “active”/“inactive” pair.
Fields§
§fill_color: Option<Color>The box’s fill, ticked.
check_color: Option<Color>The tick drawn on that fill.
border_color: Option<Color>The outline, unticked and at rest.
active_border_color: Option<Color>The outline under a pointer, a finger or focus. The reference resolves this side per state, and an outline that did not answer would look inert.
radius: Option<f32>The box’s corner radius.
label_color: Option<Color>The label beside it.
tap_target: Option<TapTarget>How much room it reserves for a finger — the reference’s per-widget say over
the theme’s (checkbox.dart:512). Unset, the theme’s own answer.
overlay_color: Option<WidgetStateProperty<Color>>The halo under a pointer, the keyboard or a finger, state by state. Unset, the reference’s (milestone 634).
splash_radius: Option<f32>That halo’s radius. Unset, 20.
visual_density: Option<VisualDensity>How compact a checkbox is. Unset, the standard density, whatever the theme’s.