pub struct DropdownTheme {
pub text_style: Option<TextStyle>,
pub menu_background: Option<Color>,
pub menu_shape: Option<ShapeBorder>,
pub menu_radius: Option<f32>,
pub menu_elevation: Option<f32>,
pub menu_shadow_color: Option<Color>,
pub menu_padding: Option<Insets>,
}Expand description
Defaults for DropdownButton and its options.
The menu_* fields are the panel its options float on. They are this theme’s and
not MenuTheme’s, because the reference’s dropdown button does not read the menu
theme either: its list has its own height, eight, where a menu has three.
Fields§
§text_style: Option<TextStyle>The value’s and the options’ type.
The panel’s surface. Unset, surface_container, the popup menu’s.
What shape the panel is.
The radius of the panel’s corners, for a theme that would rather give the number
than the shape. Outranked by menu_shape.
How far off the page the panel sits, in pixels. Unset, eight, the reference’s.
The colour of the panel’s shadow. Unset, the scheme’s shadow at 30 %;
Color::TRANSPARENT casts none.
The room kept above and below the options, inside the panel. Unset, eight.