SwipingButton class

Inheritance

Constructors

SwipingButton({Key? key, required double thumbWidth, required Size size, VoidCallback? onSwipeComplete, bool validateOnScroll()?, SwipingButtonController? swipingButtonController, String text = "", TextStyle textStyle = const TextStyle(color: Colors.grey), bool turnOfAnimation = false, Duration textAnimationDuration = const Duration(milliseconds: 1000), double thumbBorderRadius = 50, Color thumbColor = Colors.white, Color swipedBgColor = Colors.green, double borderRadius = 50, Widget thumbChild = const Center(child: Icon(Icons.fast_forward)), List<BoxShadow> boxShadow = const [BoxShadow(color: Colors.grey, offset: Offset(-3, -3), blurRadius: 8, spreadRadius: 8), BoxShadow(color: Colors.grey, offset: Offset(4, 4), blurRadius: 8, spreadRadius: 8)], List<BoxShadow> thumbBoxShadow = const [BoxShadow(color: Colors.black, blurRadius: 1, spreadRadius: 0), BoxShadow(color: Colors.white, blurRadius: 10, spreadRadius: 5)], List<Color> textGradientColor = const [Colors.grey, Colors.white], Color bgColor = Colors.white, Border thumbBorder = const Border.fromBorderSide(BorderSide(color: Colors.black12))})
const

Properties

bgColor Color
final
borderRadius double
final
boxShadow List<BoxShadow>
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onSwipeComplete VoidCallback?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
final
swipedBgColor Color
final
swipingButtonController SwipingButtonController?
final
text String
final
textAnimationDuration Duration
final
textGradientColor List<Color>
final
textStyle TextStyle
final
thumbBorder Border
final
thumbBorderRadius double
final
thumbBoxShadow List<BoxShadow>
final
thumbChild Widget
final
thumbColor Color
final
thumbWidth double
final
turnOfAnimation bool
final
validateOnScroll → (bool Function()?)
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SwipingButtonState
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