ElasticButton class

弹性按钮

Inheritance
Available extensions

Constructors

ElasticButton({Key? key, bool withOpacity = false, bool useCache = true, Alignment alignment = Alignment.center, double scaleCoefficient = 0.95, Widget? child, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, GestureTapCallback? onTap, GestureTapCancelCallback? onTapCancel, GestureTapDownCallback? onSecondaryTapDown, GestureTapUpCallback? onSecondaryTapUp, GestureTapCancelCallback? onSecondaryTapCancel, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, GestureLongPressStartCallback? onLongPressStart, GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate, GestureLongPressUpCallback? onLongPressUp, GestureLongPressEndCallback? onLongPressEnd, GestureDragDownCallback? onVerticalDragDown, GestureDragStartCallback? onVerticalDragStart, GestureDragUpdateCallback? onVerticalDragUpdate, GestureDragEndCallback? onVerticalDragEnd, GestureDragCancelCallback? onVerticalDragCancel, GestureDragDownCallback? onHorizontalDragDown, GestureDragStartCallback? onHorizontalDragStart, GestureDragUpdateCallback? onHorizontalDragUpdate, GestureDragEndCallback? onHorizontalDragEnd, GestureDragCancelCallback? onHorizontalDragCancel, GestureForcePressStartCallback? onForcePressStart, GestureForcePressPeakCallback? onForcePressPeak, GestureForcePressUpdateCallback? onForcePressUpdate, GestureForcePressEndCallback? onForcePressEnd, GestureDragDownCallback? onPanDown, GestureDragStartCallback? onPanStart, GestureDragUpdateCallback? onPanUpdate, GestureDragEndCallback? onPanEnd, GestureDragCancelCallback? onPanCancel, GestureScaleStartCallback? onScaleStart, GestureScaleUpdateCallback? onScaleUpdate, GestureScaleEndCallback? onScaleEnd})
const

Properties

alignment Alignment
Use this value to determine the alignment of the animation.
final
child Widget?
The widget that is to be displayed on your regular UI.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDoubleTap GestureTapCallback?
final
onForcePressEnd GestureForcePressEndCallback?
final
onForcePressPeak GestureForcePressPeakCallback?
final
onForcePressStart GestureForcePressStartCallback?
final
onForcePressUpdate GestureForcePressUpdateCallback?
final
onHorizontalDragCancel GestureDragCancelCallback?
final
onHorizontalDragDown GestureDragDownCallback?
final
onHorizontalDragEnd GestureDragEndCallback?
final
onHorizontalDragStart GestureDragStartCallback?
final
onHorizontalDragUpdate GestureDragUpdateCallback?
final
onLongPress GestureLongPressCallback?
final
onLongPressEnd GestureLongPressEndCallback?
final
onLongPressMoveUpdate GestureLongPressMoveUpdateCallback?
final
onLongPressStart GestureLongPressStartCallback?
final
onLongPressUp GestureLongPressUpCallback?
final
onPanCancel GestureDragCancelCallback?
final
onPanDown GestureDragDownCallback?
final
onPanEnd GestureDragEndCallback?
final
onPanStart GestureDragStartCallback?
final
onPanUpdate GestureDragUpdateCallback?
final
onScaleEnd GestureScaleEndCallback?
final
onScaleStart GestureScaleStartCallback?
final
onScaleUpdate GestureScaleUpdateCallback?
final
onSecondaryTapCancel GestureTapCancelCallback?
final
onSecondaryTapDown GestureTapDownCallback?
final
onSecondaryTapUp GestureTapUpCallback?
final
onTap GestureTapCallback?
final
onTapCancel GestureTapCancelCallback?
final
onTapDown GestureTapDownCallback?
final
onTapUp GestureTapUpCallback?
final
onVerticalDragCancel GestureDragCancelCallback?
final
onVerticalDragDown GestureDragDownCallback?
final
onVerticalDragEnd GestureDragEndCallback?
final
onVerticalDragStart GestureDragStartCallback?
final
onVerticalDragUpdate GestureDragUpdateCallback?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleCoefficient double
Use this value to determine the scaling factor while the animation is being played. Choose a value between 0.0 and 1.0.
final
useCache bool
Set this to true if your child doesn't change at runtime.
final
withOpacity bool
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ElasticButton>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited