VerticalSlidableButton class

Inheritance

Constructors

VerticalSlidableButton({Key? key, required ValueChanged<SlidableButtonPosition>? onChanged, AnimationController? controller, Widget? child, bool autoSlide = true, Color? disabledColor, Color? buttonColor, Color? color, Widget? label, BoxBorder? border, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(60.0)), SlidableButtonPosition initialPosition = SlidableButtonPosition.start, double completeSlideAt = 0.5, double height = 120.0, double width = 36.0, double? buttonHeight, bool dismissible = true, bool isRestart = false, bool tristate = false, bool centerPoint = false})
Creates a VerticalSlidableButton
const

Properties

autoSlide bool
Button will auto slide to nearest point after drag released if true, otherwise will not slide.
final
border BoxBorder?
Border of area slide (usually called background).
final
borderRadius BorderRadius
Border Radius for the button and it's child.
final
buttonColor Color?
The color of button.
final
buttonHeight double?
Width of button. If buttonHeight is still null and the label is not null, this will automatically wrapping label.
final
centerPoint bool
Whether the button can be stopped at center position.
final
child Widget?
A widget that is behind the button.
final
color Color?
The color of background.
final
completeSlideAt double
The % at which the slide gesture should be considered as completed (0 to 1)
final
controller AnimationController?
Controller for the button while sliding.
final
disabledColor Color?
Button color if it disabled.
final
dismissible bool
It means the effect while and after sliding.
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height of this widget (button and it's background).
final
initialPosition SlidableButtonPosition
Initial button position. It can on the left or right.
final
isRestart bool
Restart animation when the position is opposite to initialPosition
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget?
Label of the button.
final
onChanged ValueChanged<SlidableButtonPosition>?
Listen to position, is button on the left or right.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tristate bool
If true the button's position can be left, right, or sliding. Otherwise only left or right.
final
width double
Width of area slide (usually called background).
final

Methods

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