GradientButtonStyle class
- Inheritance
-
- Object
- ButtonStyle
- GradientButtonStyle
Constructors
-
GradientButtonStyle({Gradient? gradient, AlignmentGeometry? alignment, Duration? animationDuration, MaterialStateProperty<
double?> ? elevation, bool? enableFeedback, MaterialStateProperty<Size?> ? fixedSize, MaterialStateProperty<Color?> ? foregroundColor, MaterialStateProperty<Color?> ? iconColor, MaterialStateProperty<double?> ? iconSize, MaterialStateProperty<Size?> ? maximumSize, MaterialStateProperty<Size?> ? minimumSize, MaterialStateProperty<MouseCursor?> ? mouseCursor, MaterialStateProperty<Color?> ? overlayColor, MaterialStateProperty<EdgeInsetsGeometry?> ? padding, MaterialStateProperty<Color?> ? shadowColor, MaterialStateProperty<OutlinedBorder?> ? shape, MaterialStateProperty<BorderSide?> ? side, InteractiveInkFeatureFactory? splashFactory, MaterialStateProperty<Color?> ? surfaceTintColor, MaterialTapTargetSize? tapTargetSize, MaterialStateProperty<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
→ MaterialStateProperty<
Color?> ? -
The button's background fill color.
finalinherited
-
elevation
→ MaterialStateProperty<
double?> ? -
The elevation of the button's Material.
finalinherited
- enableFeedback → bool?
-
Whether detected gestures should provide acoustic and/or haptic feedback.
finalinherited
-
fixedSize
→ MaterialStateProperty<
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
→ MaterialStateProperty<
Color?> ? -
The color for the button's Text and Icon widget descendants.
finalinherited
- gradient → Gradient?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
iconColor
→ MaterialStateProperty<
Color?> ? -
The icon's color inside of the button.
finalinherited
-
iconSize
→ MaterialStateProperty<
double?> ? -
The icon's size inside of the button.
finalinherited
-
maximumSize
→ MaterialStateProperty<
Size?> ? -
The maximum size of the button itself.
finalinherited
-
minimumSize
→ MaterialStateProperty<
Size?> ? -
The minimum size of the button itself.
finalinherited
-
mouseCursor
→ MaterialStateProperty<
MouseCursor?> ? -
The cursor for a mouse pointer when it enters or is hovering over
this button's InkWell.
finalinherited
-
overlayColor
→ MaterialStateProperty<
Color?> ? -
The highlight color that's typically used to indicate that
the button is focused, hovered, or pressed.
finalinherited
-
padding
→ MaterialStateProperty<
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
→ MaterialStateProperty<
Color?> ? -
The shadow color of the button's Material.
finalinherited
-
shape
→ MaterialStateProperty<
OutlinedBorder?> ? -
The shape of the button's underlying Material.
finalinherited
-
side
→ MaterialStateProperty<
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
→ MaterialStateProperty<
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
→ MaterialStateProperty<
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(
{MaterialStateProperty< TextStyle?> ? textStyle, MaterialStateProperty<Color?> ? backgroundColor, MaterialStateProperty<Color?> ? foregroundColor, MaterialStateProperty<Color?> ? overlayColor, MaterialStateProperty<Color?> ? shadowColor, MaterialStateProperty<Color?> ? surfaceTintColor, MaterialStateProperty<double?> ? elevation, MaterialStateProperty<EdgeInsetsGeometry?> ? padding, MaterialStateProperty<Size?> ? minimumSize, MaterialStateProperty<Size?> ? fixedSize, MaterialStateProperty<Size?> ? maximumSize, MaterialStateProperty<Color?> ? iconColor, MaterialStateProperty<double?> ? iconSize, MaterialStateProperty<BorderSide?> ? side, MaterialStateProperty<OutlinedBorder?> ? shape, MaterialStateProperty<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