ButtonThemeData class

Used with ButtonTheme to configure the color and geometry of buttons.

A button theme can be specified as part of the overall Material theme using ThemeData.buttonTheme. The Material theme's button theme data can be overridden with ButtonTheme.

Inheritance

Constructors

ButtonThemeData({ButtonTextTheme textTheme: ButtonTextTheme.normal, double minWidth: 88.0, double height: 36.0, EdgeInsetsGeometry padding, ShapeBorder shape, bool alignedDropdown: false })
Create a button theme object that can be used with ButtonTheme or ThemeData. [...]
const

Properties

alignedDropdown bool
If true, then a DropdownButton menu's width will match the button's width. [...]
final
constraints BoxConstraints
Simply a convenience that returns minWidth and height as a BoxConstraints object: [...]
read-only
hashCode int
The hash code for this object. [...]
read-only
height double
The minimum height for buttons. [...]
final
minWidth double
The minimum width for buttons. [...]
final
padding EdgeInsetsGeometry
Padding for a button's child (typically the button's label). [...]
read-only
shape ShapeBorder
The shape of a button's material. [...]
read-only
textTheme ButtonTextTheme
Defines a button's base colors, and the defaults for the button's minimum size, internal padding, and shape.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyWith({ButtonTextTheme textTheme, double minWidth, double height, EdgeInsetsGeometry padding, ShapeBorder shape, bool alignedDropdown }) ButtonThemeData
Creates a copy of this button theme data object with the matching fields replaced with the non-null parameter values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns 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 ==(dynamic other) bool
The equality operator. [...]