DropSlider class
child widget is displayed at drop swipe bottom side To set swipe color user color parameter aboveWidget is responsible for the widget, which is the trigger for the swipe, is displayed while the swipe widget height == 0, as well as above the widget after gestures maxHeight - maximum widget draw height controller Using the controller, you can control the position of this widget (specify the height or return the swipe state to its original position) width - max widget width, default == screen width onDragEnd - when the height of the swipe is greater than the minimum, perform this action reverseDuration - the duration of the delay after which the height of the controller will be changed when rolling back to the primary state (the height can be changed through the controller) opacityDuration - the duration of the child's opacity change on swipe isOnTapEnabled - allows you to activate an action on clicking on an element boxShadow - used to display a shadow on an drop element feedbackType - haptic feedback type
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DropSlider
- Annotations
Constructors
-
DropSlider({required HeightBuilder child, required Color color, required HeightBuilder aboveWidget, BaseDropSwipeController? controller, VoidCallback? onDragEnd, VoidCallback? onDragStart, double? width, List<
BoxShadow> ? boxShadow, double maxHeight = 200, bool isOnTapEnabled = true, HapticFeedbackType feedbackType = HapticFeedbackType.light, Duration opacityDuration = const Duration(milliseconds: 300), Duration reverseDuration = const Duration(milliseconds: 20), Key? key}) -
const
Properties
- aboveWidget → HeightBuilder
-
final
-
boxShadow
→ List<
BoxShadow> ? -
final
- child → HeightBuilder
-
final
- color → Color
-
final
- controller → BaseDropSwipeController?
-
final
- feedbackType → HapticFeedbackType
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOnTapEnabled → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxHeight → double
-
final
- onDragEnd → VoidCallback?
-
final
- onDragStart → VoidCallback?
-
final
- opacityDuration → Duration
-
final
- reverseDuration → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _DropSliderState -
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.
override
-
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
Static Methods
-
of(
BuildContext context) → _DropSliderState?