pub struct CardTheme {
pub shape: Option<ShapeBorder>,
pub variant: Option<CardVariant>,
pub elevation: Option<f32>,
pub color: Option<Color>,
pub radius: Option<BorderRadius>,
pub margin: Option<f32>,
pub padding: Option<f32>,
}Expand description
Defaults for Card.
Fields§
§shape: Option<ShapeBorder>What shape it is (shape_border.dart), over the plain radius below:
a card’s. Unset, the widget decides.
variant: Option<CardVariant>Which of the three cards an untold Card::new() is.
elevation: Option<f32>How far off the surface it sits.
color: Option<Color>Its background, overriding the variant’s tone.
radius: Option<BorderRadius>Its corner radii.
margin: Option<f32>The room it leaves around itself.
padding: Option<f32>The room it leaves inside itself.
Trait Implementations§
impl Copy for CardTheme
impl StructuralPartialEq for CardTheme
Auto Trait Implementations§
impl Freeze for CardTheme
impl RefUnwindSafe for CardTheme
impl Send for CardTheme
impl Sync for CardTheme
impl Unpin for CardTheme
impl UnsafeUnpin for CardTheme
impl UnwindSafe for CardTheme
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