SlideAction class

Slider call to action component

Inheritance

Constructors

SlideAction({Key? key, double sliderButtonIconSize = 24, double sliderButtonIconPadding = 16, double sliderButtonYOffset = 0, bool sliderRotate = true, bool enabled = true, double height = 70, Color? textColor, Color? innerColor, Color? outerColor, double borderRadius = 52, double elevation = 6, Duration animationDuration = const Duration(milliseconds: 300), bool reversed = false, Alignment alignment = Alignment.center, Widget? submittedIcon, Future? onSubmit()?, Widget? child, String? text, TextStyle? textStyle, Widget? sliderButtonIcon})
Create a new instance of the widget
const

Properties

alignment Alignment
the alignment of the widget once it's submitted
final
animationDuration Duration
The duration of the animations
final
borderRadius double
The borderRadius of the sliding icon and of the background
final
child Widget?
The child that is rendered instead of the default Text widget
final
elevation double
Elevation of the component
final
enabled bool
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height of the component
final
innerColor Color?
The color of the inner circular button and the tick icon. If not set, this attribute defaults to primaryIconTheme.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onSubmit → (Future? Function()?)
Callback called on submit If this is null the component will not animate to complete
final
outerColor Color?
The color of the external area and of the arrow icon. If not set, this attribute defaults to the secondary color of your theme's colorScheme.
final
reversed bool
If true the widget will be reversed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sliderButtonIcon Widget?
The widget to render instead of the default icon
final
sliderButtonIconPadding double
Tha padding of the sliding icon
final
sliderButtonIconSize double
The size of the sliding icon
final
sliderButtonYOffset double
The offset on the y axis of the slider icon
final
sliderRotate bool
If the slider icon rotates
final
submittedIcon Widget?
The widget to render instead of the default submitted icon
final
text String?
The text showed in the default Text widget
final
textColor Color?
The color of the text. If not set, this attribute defaults to primaryIconTheme.
final
textStyle TextStyle?
Text style which is applied on the Text widget.
final

Methods

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