ButtonBarThemeData class
Defines the visual properties of ButtonBar widgets.
Used by ButtonBarTheme to control the visual properties of ButtonBar instances in a widget subtree.
To obtain this configuration, use ButtonBarTheme.of to access the closest ancestor ButtonBarTheme of the current BuildContext.
See also:
- ButtonBarTheme, an InheritedWidget that propagates the theme down its subtree.
- ButtonBar, which uses this to configure itself and its children button widgets.
- Mixed in types
- Annotations
-
- @Deprecated('Use OverflowBar instead. ' 'This feature was deprecated after v3.21.0-10.0.pre.')
- @immutable
Constructors
- ButtonBarThemeData({MainAxisAlignment? alignment, MainAxisSize? mainAxisSize, ButtonTextTheme? buttonTextTheme, double? buttonMinWidth, double? buttonHeight, EdgeInsetsGeometry? buttonPadding, bool? buttonAlignedDropdown, ButtonBarLayoutBehavior? layoutBehavior, VerticalDirection? overflowDirection})
-
Constructs the set of properties used to configure ButtonBar widgets.
const
Properties
- alignment → MainAxisAlignment?
-
How the children should be placed along the horizontal axis.
final
-
If true, then a DropdownButton menu's width will match the ButtonBar
button's width.
final
-
The minimum height for ButtonBar buttons.
final
-
The minimum width for ButtonBar buttons.
final
-
Padding for a ButtonBar button's child (typically the button's label).
final
-
Defines a ButtonBar button's base colors, and the defaults for
the button's minimum size, internal padding, and shape.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- layoutBehavior → ButtonBarLayoutBehavior?
-
Defines whether a ButtonBar should size itself with a minimum size
constraint or with padding.
final
- mainAxisSize → MainAxisSize?
-
How much horizontal space is available. See Row.mainAxisSize.
final
- overflowDirection → VerticalDirection?
-
Defines the vertical direction of a ButtonBar's children if it
overflows.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{MainAxisAlignment? alignment, MainAxisSize? mainAxisSize, ButtonTextTheme? buttonTextTheme, double? buttonMinWidth, double? buttonHeight, EdgeInsetsGeometry? buttonPadding, bool? buttonAlignedDropdown, ButtonBarLayoutBehavior? layoutBehavior, VerticalDirection? overflowDirection}) → ButtonBarThemeData - Creates a copy of this object but with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
ButtonBarThemeData? a, ButtonBarThemeData? b, double t) → ButtonBarThemeData? - Linearly interpolate between two button bar themes.