SliderButton class

A BASF-styled slider button

Inheritance

Constructors

SliderButton({required VoidCallback onConfirmation, Key? key, double height = 70, double width = 300, Color backgroundColor = Colors.white, Color? backgroundColorEnd, Color? foregroundColor, Color iconColor = Colors.white, BoxShadow? shadow, Widget? sliderButtonContent, String? text, TextStyle? textStyle, BorderRadius? foregroundShape, BorderRadius? backgroundShape, bool stickToEnd = false, Curve? animationCurve})
A BASF-styled slider button
const

Properties

animationCurve Curve?
Curve of the slider animation
final
backgroundColor Color
Background color of the slider
final
backgroundColorEnd Color?
Background color of the slider on the end
final
backgroundShape BorderRadius?
Shape of the slider's background
final
foregroundColor Color?
Background color of the slider on the foreground
final
foregroundShape BorderRadius?
Shape of the slider
final
hashCode int
The hash code for this object.
no setterinherited
height double
Height of the slider
final
iconColor Color
Icon color of the icon in the slider
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onConfirmation VoidCallback
Action to be performed when the slider is fully slided
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadow BoxShadow?
Slider shadows
final
sliderButtonContent Widget?
An optional slider cuntent as a widget
final
stickToEnd bool
Wheter or not the slider should stick to the end of the shape on drag
final
text String?
Slider text
final
textStyle TextStyle?
Slider text style
final
width double
Width of the slider
final

Methods

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