HoldableButton class

Inheritance

Constructors

HoldableButton({Key? key, required LoadingType loadingType, required Color buttonColor, required Color loadingColor, required int duration, required double radius, required Function onConfirm, required Widget child, required double strokeWidth, required double width, required double height, double edgeLoadingStartPoint = 0, bool resetAfterFinish = false, bool reverseAfterLongPressUp = true, bool hasVibrate = false, AlignmentGeometry beginFillingPoint = Alignment.centerRight, AlignmentGeometry endFillingPoint = Alignment.centerLeft, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding})
const

Properties

beginFillingPoint AlignmentGeometry
Side of start loading in FillingLoading type It can be Alignment.centerRight, Alignment.centerLeft, Alignment.topCenter or etc. The default value is Alignment.centerRight.
final
buttonColor Color
final
child Widget
final
duration int
final
edgeLoadingStartPoint double
The start point of loading in edgeLoading type the default value is 0
final
endFillingPoint AlignmentGeometry
Side of end loading in FillingLoading type It can be Alignment.centerRight, Alignment.centerLeft, Alignment.topCenter or etc. The default value is Alignment.centerLeft.
final
hashCode int
The hash code for this object.
no setterinherited
hasVibrate bool
final
height double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingColor Color
final
loadingType LoadingType
The loading type from enum { edgeLoading, fillingLoading }
final
margin EdgeInsetsGeometry?
final
onConfirm Function
final
padding EdgeInsetsGeometry?
final
radius double
final
resetAfterFinish bool
after loading complete, if this value is true, it will reset the loading and enable it again the false value, keep the loading completed, and not allow to start again the default value is false
final
reverseAfterLongPressUp bool
after longPressUp, if this value is true, it will reverse the loading in the path that it is passed if this value is false, the loading will stop suddenly the default value is true
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth double
final
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<HoldableButton>
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, int wrapWidth = 65}) 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