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.buttomTheme. The Material theme's button theme data can be overridden with ButtonTheme.

Constructors

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

Properties

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]