pub struct ButtonBarThemeData {
pub alignment: Option<MainAxisAlignment>,
pub main_axis_size: Option<MainAxisSize>,
pub button_text_theme: Option<ButtonTextTheme>,
pub button_min_width: Option<f64>,
pub button_height: Option<f64>,
pub button_padding: Option<EdgeInsetsGeometry>,
pub button_aligned_dropdown: Option<bool>,
pub layout_behavior: Option<ButtonBarLayoutBehavior>,
pub overflow_direction: Option<VerticalDirection>,
}Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
Expand description
Defines the visual properties of ButtonBar widgets.
Used by ButtonBarTheme to control the visual properties of ButtonBar instances in a
widget subtree.
See also:
ButtonBarTheme, anInheritedWidgetthat propagates the theme down its subtree.ButtonBar, which uses this to configure itself and its children button widgets.
Fields§
§alignment: Option<MainAxisAlignment>Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
How the children should be placed along the horizontal axis.
main_axis_size: Option<MainAxisSize>Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
How much horizontal space is available. See Row::main_axis_size.
Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
Defines a ButtonBar button’s base colors, and the defaults for the button’s minimum
size, internal padding, and shape.
Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
The minimum width for ButtonBar buttons.
Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
The minimum height for ButtonBar buttons.
Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
Padding for a ButtonBar button’s child (typically the button’s label).
Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
If true, then a DropdownButton menu’s width will match the ButtonBar button’s
width.
layout_behavior: Option<ButtonBarLayoutBehavior>Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
Defines whether a ButtonBar should size itself with a minimum size constraint or with
padding.
overflow_direction: Option<VerticalDirection>Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
Defines the vertical direction of a ButtonBar’s children if it overflows.
Implementations§
Source§impl ButtonBarThemeData
impl ButtonBarThemeData
Sourcepub fn new() -> ButtonBarThemeData
pub fn new() -> ButtonBarThemeData
Creates the set of properties used to configure ButtonBar widgets; Dart’s optional
named arguments are the with_* setters.
Sourcepub fn with_alignment(self, alignment: MainAxisAlignment) -> ButtonBarThemeData
pub fn with_alignment(self, alignment: MainAxisAlignment) -> ButtonBarThemeData
Dart ButtonBarThemeData(alignment:).
Sourcepub fn with_main_axis_size(
self,
main_axis_size: MainAxisSize,
) -> ButtonBarThemeData
pub fn with_main_axis_size( self, main_axis_size: MainAxisSize, ) -> ButtonBarThemeData
Dart ButtonBarThemeData(mainAxisSize:).
Dart ButtonBarThemeData(buttonTextTheme:).
Dart ButtonBarThemeData(buttonMinWidth:).
Dart ButtonBarThemeData(buttonHeight:).
Dart ButtonBarThemeData(buttonPadding:).
Dart ButtonBarThemeData(buttonAlignedDropdown:).
Sourcepub fn with_layout_behavior(
self,
layout_behavior: ButtonBarLayoutBehavior,
) -> ButtonBarThemeData
pub fn with_layout_behavior( self, layout_behavior: ButtonBarLayoutBehavior, ) -> ButtonBarThemeData
Dart ButtonBarThemeData(layoutBehavior:).
Sourcepub fn with_overflow_direction(
self,
overflow_direction: VerticalDirection,
) -> ButtonBarThemeData
pub fn with_overflow_direction( self, overflow_direction: VerticalDirection, ) -> ButtonBarThemeData
Dart ButtonBarThemeData(overflowDirection:).
Sourcepub fn copy_with(&self) -> ButtonBarThemeData
pub fn copy_with(&self) -> ButtonBarThemeData
Creates a copy of this object but with the given fields replaced with the new values.
Sourcepub fn lerp(
a: Option<&ButtonBarThemeData>,
b: Option<&ButtonBarThemeData>,
t: f64,
) -> Option<ButtonBarThemeData>
pub fn lerp( a: Option<&ButtonBarThemeData>, b: Option<&ButtonBarThemeData>, t: f64, ) -> Option<ButtonBarThemeData>
Linearly interpolate between two button bar themes.
If both arguments are null, then null is returned.
Trait Implementations§
Source§impl Clone for ButtonBarThemeData
impl Clone for ButtonBarThemeData
Source§impl Debug for ButtonBarThemeData
impl Debug for ButtonBarThemeData
Source§impl Default for ButtonBarThemeData
impl Default for ButtonBarThemeData
Source§impl Diagnosticable for ButtonBarThemeData
impl Diagnosticable for ButtonBarThemeData
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Object.runtimeType as diagnostics print it: the last segment of
the Rust type path, without generic arguments.Source§fn identity_hash(&self) -> u64
fn identity_hash(&self) -> u64
Object.hashCode as diagnostics print it: the object’s address.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Source§fn to_diagnostics_node(&self) -> DiagnosticableNode
fn to_diagnostics_node(&self) -> DiagnosticableNode
DiagnosticsNode::to_string_deep.Source§fn to_diagnostics_node_with(
&self,
name: Option<String>,
style: Option<DiagnosticsTreeStyle>,
) -> DiagnosticableNode
fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode
toDiagnosticsNode(name:, style:).Source§fn to_string(&self) -> String
fn to_string(&self) -> String
toString: a single-line description with properties and no
children. Read moreSource§fn to_string_at(&self, min_level: DiagnosticLevel) -> String
fn to_string_at(&self, min_level: DiagnosticLevel) -> String
toString(minLevel:).