pub struct ChipTheme {Show 14 fields
pub shape: Option<ShapeBorder>,
pub color: Option<Color>,
pub selected_color: Option<Color>,
pub label_color: Option<Color>,
pub selected_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 label_padding: Option<f32>,
pub height: Option<f32>,
pub icon_size: Option<f32>,
pub show_checkmark: Option<bool>,
}Expand description
Defaults for Chip.
Fields§
§shape: Option<ShapeBorder>What shape it is (shape_border.dart), over the plain radius below:
a chip’s. Unset, the widget decides.
color: Option<Color>The surface under an unselected chip.
selected_color: Option<Color>The surface under a selected one.
label_color: Option<Color>The label’s colour when unselected.
selected_label_color: Option<Color>The label’s colour when selected.
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.
padding: Option<f32>The room inside the outline.
label_padding: Option<f32>The room on either side of the label.
height: Option<f32>The chip’s height.
icon_size: Option<f32>The size of a leading icon, a checkmark or a delete cross.
show_checkmark: Option<bool>Whether a selected chip shows a checkmark.
Trait Implementations§
impl Copy for ChipTheme
impl StructuralPartialEq for ChipTheme
Auto Trait Implementations§
impl Freeze for ChipTheme
impl RefUnwindSafe for ChipTheme
impl Send for ChipTheme
impl Sync for ChipTheme
impl Unpin for ChipTheme
impl UnsafeUnpin for ChipTheme
impl UnwindSafe for ChipTheme
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