SliderButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SliderButton
Constructors
-
SliderButton({required Future<
bool?> action(), double radius = 100, BoxShadow? boxShadow, Widget? child, bool vibrationFlag = false, bool shimmer = true, double height = 70, double? buttonSize, double? buttonWidth, double width = 270, Alignment alignLabel = const Alignment(0.6, 0), Color backgroundColor = const Color(0xffe0e0e0), Color baseColor = Colors.black87, Color buttonColor = Colors.white, Color highlightedColor = Colors.white, Widget? label, Widget? icon, double dismissThresholds = 0.75, bool disable = false})
Properties
-
action
→ Future<
bool?> Function() -
final
- alignLabel → Alignment
-
Gives a alignment to a slider icon.
final
- backgroundColor → Color
-
Use it to define a color of widget.
final
- baseColor → Color
-
final
- boxShadow → BoxShadow?
-
final
-
final
-
final
-
Use this parameter in case if your slider button is wide and not squared.
final
- child → Widget?
-
To make button more customizable add your child widget
final
- disable → bool
-
final
- dismissThresholds → double
-
The offset threshold the item has to be dragged in order to be considered
dismissed e.g. if it is 0.4, then the item has to be dragged
at least 40% towards one direction to be considered dismissed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Use it to define a height and width of widget.
final
- highlightedColor → Color
-
final
- icon → Widget?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
Change it to gave a label on a widget of your choice.
final
- radius → double
-
Sets the radius of corners of a button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shimmer → bool
-
Make it false if you want to deactivate the shimmer effect.
final
- vibrationFlag → bool
-
final
- width → double
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _SliderButtonState -
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