SwipeManager class
A customizable widget that allows vertical or horizontal swipe interaction.
The widget supports configurable colors, size, and child elements, and allows users to listen to value changes during the swipe interaction.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SwipeManager
Constructors
- SwipeManager({Key? key, double initialValue = 1.0, ChangeCallback? onChange, FinishCallback? onFinish, SlideDirection direction = SlideDirection.vertical, Color color = const Color.fromRGBO(46, 45, 36, 0.5), Color fillColor = Colors.white, Widget? child, ChildBuilder? childBuilder, double width = 20, double height = 200})
-
Creates a SwipeManager widget.
const
Properties
- child → Widget?
-
Optional static child widget.
final
- childBuilder → ChildBuilder?
-
Function to build child elements dynamically based on the swipe value.
final
- color → Color
-
Background color of the swipe container.
final
- direction → SlideDirection
-
Direction of the swipe, either SlideDirection.vertical or SlideDirection.horizontal.
final
- fillColor → Color
-
Fill color that represents the swipe progress.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of the swipe area.
final
- initialValue → double
-
Initial value of the swipe, ranging from 0 to 1.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChange → ChangeCallback?
-
Callback function triggered when the value changes.
final
- onFinish → FinishCallback?
-
Callback function triggered when the swipe interaction ends.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
Width of the swipe area.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SwipeManager> -
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, int wrapWidth = 65}) → 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