pub struct ButtonTheme {
pub shape: Option<ShapeBorder>,
pub color: Option<Color>,
pub 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 height: Option<f32>,
pub min_width: Option<f32>,
pub elevation: Option<f32>,
}Expand description
Defaults for Button.
Fields§
§shape: Option<ShapeBorder>What shape it is (shape_border.dart), over the plain radius below:
a button’s, whose default is a pill (button_style.dart). Unset, the widget decides.
color: Option<Color>The surface under the label, whatever the variant would have used.
label_color: Option<Color>The label’s colour.
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. Unset, a button is a stadium.
padding: Option<f32>The room either side of the label.
height: Option<f32>The button’s height.
min_width: Option<f32>The narrowest it will be, however short its label.
elevation: Option<f32>How far it sits off the surface, in every state. Unset, the variant’s own
heights, which move with the state — see Button::elevation.
Trait Implementations§
Source§impl Clone for ButtonTheme
impl Clone for ButtonTheme
impl Copy for ButtonTheme
Source§impl Debug for ButtonTheme
impl Debug for ButtonTheme
Source§impl Default for ButtonTheme
impl Default for ButtonTheme
Source§impl PartialEq for ButtonTheme
impl PartialEq for ButtonTheme
impl StructuralPartialEq for ButtonTheme
Auto Trait Implementations§
impl Freeze for ButtonTheme
impl RefUnwindSafe for ButtonTheme
impl Send for ButtonTheme
impl Sync for ButtonTheme
impl Unpin for ButtonTheme
impl UnsafeUnpin for ButtonTheme
impl UnwindSafe for ButtonTheme
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