ButtonThemeData class
Theme data for Button.
- Annotations
Constructors
- ButtonThemeData({Axis? axis, IconThemeData? iconThemeData, double? itemSpacing, double? filledSpacing, double? height, double? minWidth, TextStyle? textStyle, Color? disabledColor, Color? color, Color? focusColor, Color? hoverColor, Color? highlightColor, Color? background, Color? focusBackground, Color? hoverBackground, Color? highlightBackground, Color? foreground, Color? hoverForeground, Color? highlightForeground, Duration? animationDuration})
-
Creates a ButtonThemeData.
const
Properties
- animationDuration → Duration?
-
The duration of the animation.
final
- axis → Axis?
-
The axis of the button.
final
- background → Color?
-
The background color when the button is filled.
final
- color → Color?
-
The color when button is not filled.
final
- disabledColor → Color?
-
The color when the button is disabled.
final
- filledSpacing → double?
-
Spacing used in body padding when the button is filled.
final
- focusBackground → Color?
-
The background color when the button is being focused.
final
- focusColor → Color?
-
The color when the button has focus.
final
- foreground → Color?
-
The foreground color when the button is filled.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
The height of the button.
final
- highlightBackground → Color?
-
The background color when the button is pressed.
final
- highlightColor → Color?
-
The color when the button is pressed.
final
- highlightForeground → Color?
-
The foreground color when the button is pressed.
final
- hoverBackground → Color?
-
The background color when the button is being hovered.
final
- hoverColor → Color?
-
The color when the button is being hovered.
final
- hoverForeground → Color?
-
The foreground color when the button is being hovered.
final
- iconThemeData → IconThemeData?
-
The icon theme data.
final
- itemSpacing → double?
-
Spacing used in body and button paddings.
final
- minWidth → double?
-
The minimum width of the button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
The text style.
final
Methods
-
copyWith(
{Axis? axis, IconThemeData? iconThemeData, double? itemSpacing, double? filledSpacing, double? height, double? minWidth, TextStyle? textStyle, Color? disabledColor, Color? color, Color? focusColor, Color? hoverColor, Color? highlightColor, Color? background, Color? focusBackground, Color? hoverBackground, Color? highlightBackground, Color? foreground, Color? hoverForeground, Color? highlightForeground, Duration? animationDuration}) → ButtonThemeData - Makes a copy of ButtonThemeData overwriting selected fields.
-
merge(
ButtonThemeData? other) → ButtonThemeData - Merges the theme data ButtonThemeData.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant ButtonThemeData other) → bool -
The equality operator.
override