GradientButtonStyle class

Inheritance

Constructors

GradientButtonStyle({Gradient? gradient, AlignmentGeometry? alignment, Duration? animationDuration, WidgetStateProperty<double?>? elevation, bool? enableFeedback, WidgetStateProperty<Size?>? fixedSize, WidgetStateProperty<Color?>? foregroundColor, WidgetStateProperty<Color?>? iconColor, WidgetStateProperty<double?>? iconSize, WidgetStateProperty<Size?>? maximumSize, WidgetStateProperty<Size?>? minimumSize, WidgetStateProperty<MouseCursor?>? mouseCursor, WidgetStateProperty<Color?>? overlayColor, WidgetStateProperty<EdgeInsetsGeometry?>? padding, WidgetStateProperty<Color?>? shadowColor, WidgetStateProperty<OutlinedBorder?>? shape, WidgetStateProperty<BorderSide?>? side, InteractiveInkFeatureFactory? splashFactory, WidgetStateProperty<Color?>? surfaceTintColor, MaterialTapTargetSize? tapTargetSize, WidgetStateProperty<TextStyle?>? textStyle, VisualDensity? visualDensity})
const
GradientButtonStyle.copyWith({Gradient? gradient, ButtonStyle? style})
factory

Properties

alignment AlignmentGeometry?
The alignment of the button's child.
finalinherited
animationDuration Duration?
Defines the duration of animated changes for shape and elevation.
finalinherited
backgroundBuilder ButtonLayerBuilder?
Creates a widget that becomes the child of the button's Material and whose child is the rest of the button, including the button's child parameter.
finalinherited
backgroundColor WidgetStateProperty<Color?>?
The button's background fill color.
finalinherited
elevation WidgetStateProperty<double?>?
The elevation of the button's Material.
finalinherited
enableFeedback bool?
Whether detected gestures should provide acoustic and/or haptic feedback.
finalinherited
fixedSize WidgetStateProperty<Size?>?
The button's size.
finalinherited
foregroundBuilder ButtonLayerBuilder?
Creates a Widget that contains the button's child parameter which is used instead of the button's child.
finalinherited
foregroundColor WidgetStateProperty<Color?>?
The color for the button's Text widget descendants.
finalinherited
gradient Gradient?
final
hashCode int
The hash code for this object.
no setterinherited
iconAlignment IconAlignment?
The alignment of the button's icon.
finalinherited
iconColor WidgetStateProperty<Color?>?
The icon's color inside of the button.
finalinherited
iconSize WidgetStateProperty<double?>?
The icon's size inside of the button.
finalinherited
maximumSize WidgetStateProperty<Size?>?
The maximum size of the button itself.
finalinherited
minimumSize WidgetStateProperty<Size?>?
The minimum size of the button itself before applying visualDensity.
finalinherited
mouseCursor WidgetStateProperty<MouseCursor?>?
The cursor for a mouse pointer when it enters or is hovering over this button's InkWell.
finalinherited
overlayColor WidgetStateProperty<Color?>?
The highlight color that's typically used to indicate that the button is focused, hovered, or pressed.
finalinherited
padding WidgetStateProperty<EdgeInsetsGeometry?>?
The padding between the button's boundary and its child.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor WidgetStateProperty<Color?>?
The shadow color of the button's Material.
finalinherited
shape WidgetStateProperty<OutlinedBorder?>?
The shape of the button's underlying Material.
finalinherited
side WidgetStateProperty<BorderSide?>?
The color and weight of the button's outline.
finalinherited
splashFactory InteractiveInkFeatureFactory?
Creates the InkWell splash factory, which defines the appearance of "ink" splashes that occur in response to taps.
finalinherited
surfaceTintColor WidgetStateProperty<Color?>?
The surface tint color of the button's Material.
finalinherited
tapTargetSize MaterialTapTargetSize?
Configures the minimum size of the area within which the button may be pressed.
finalinherited
textStyle WidgetStateProperty<TextStyle?>?
The style for a button's Text widget descendants.
finalinherited
visualDensity VisualDensity?
Defines how compact the button's layout will be.
finalinherited

Methods

copyWith({WidgetStateProperty<TextStyle?>? textStyle, WidgetStateProperty<Color?>? backgroundColor, WidgetStateProperty<Color?>? foregroundColor, WidgetStateProperty<Color?>? overlayColor, WidgetStateProperty<Color?>? shadowColor, WidgetStateProperty<Color?>? surfaceTintColor, WidgetStateProperty<double?>? elevation, WidgetStateProperty<EdgeInsetsGeometry?>? padding, WidgetStateProperty<Size?>? minimumSize, WidgetStateProperty<Size?>? fixedSize, WidgetStateProperty<Size?>? maximumSize, WidgetStateProperty<Color?>? iconColor, WidgetStateProperty<double?>? iconSize, IconAlignment? iconAlignment, WidgetStateProperty<BorderSide?>? side, WidgetStateProperty<OutlinedBorder?>? shape, WidgetStateProperty<MouseCursor?>? mouseCursor, VisualDensity? visualDensity, MaterialTapTargetSize? tapTargetSize, Duration? animationDuration, bool? enableFeedback, AlignmentGeometry? alignment, InteractiveInkFeatureFactory? splashFactory, ButtonLayerBuilder? backgroundBuilder, ButtonLayerBuilder? foregroundBuilder}) ButtonStyle
Returns a copy of this ButtonStyle with the given fields replaced with the new values.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
merge(ButtonStyle? style) ButtonStyle
Returns a copy of this ButtonStyle where the non-null fields in style have replaced the corresponding null fields in this ButtonStyle.
inherited
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.
inherited