SlideAction class Null safety

Slider call to action component

Inheritance

Constructors

SlideAction({Key? key, double sliderButtonIconSize = 24, double sliderButtonIconPadding = 16, double sliderButtonYOffset = 0, bool sliderRotate = true, double height = 70, Color? outerColor, double borderRadius = 52, double elevation = 6, Duration animationDuration = const Duration(milliseconds: 300), bool reversed = false, Alignment alignment = Alignment.center, Widget? submittedIcon, VoidCallback? onSubmit, Widget? child, Color? innerColor, 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
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
height double
The height of the component
final
innerColor Color?
The color of the inner circular button, of the tick icon of the text. If not set, this attribute defaults to primaryIconTheme.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onSubmit VoidCallback?
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 accentColor from your theme.
final
reversed bool
If true the widget will be reversed
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtualinherited