ButtonStyle class final
Flutter's ButtonStyle, as the buttons' styleFrom takes it. Null
fields are the button's own defaults. The padding is the node's
layout.padding; the size is the node's box (no minimum size).
- Annotations
-
- @immutable
Constructors
- ButtonStyle({Color? backgroundColor, Color? foregroundColor, Color? shadowColor, double? elevation, TextStyle textStyle = TextStyle.empty, BorderSide? side, ShapeBorder? shape, double? iconSize, Color? iconColor})
-
const
Properties
- backgroundColor → Color?
-
final
- elevation → double?
-
final
- foregroundColor → Color?
-
Label (and icon) color.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- iconColor → Color?
-
final
- iconSize → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
final
- shape → ShapeBorder?
-
final
- side → BorderSide?
-
final
- textStyle → TextStyle
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → ButtonStyle
Constants
- empty → const ButtonStyle