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>,
}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.
Trait Implementations§
Source§impl Clone for CheckboxTheme
impl Clone for CheckboxTheme
impl Copy for CheckboxTheme
Source§impl Debug for CheckboxTheme
impl Debug for CheckboxTheme
Source§impl Default for CheckboxTheme
impl Default for CheckboxTheme
Source§impl PartialEq for CheckboxTheme
impl PartialEq for CheckboxTheme
impl StructuralPartialEq for CheckboxTheme
Auto Trait Implementations§
impl Freeze for CheckboxTheme
impl RefUnwindSafe for CheckboxTheme
impl Send for CheckboxTheme
impl Sync for CheckboxTheme
impl Unpin for CheckboxTheme
impl UnsafeUnpin for CheckboxTheme
impl UnwindSafe for CheckboxTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more