Swipable constructor
const
Swipable({
- Key? key,
- @required Widget? child,
- void onSwipeRight(
- Offset finalPosition
- void onSwipeLeft(
- Offset finalPosition
- void onSwipeDown(
- Offset finalPosition
- void onSwipeUp(
- Offset finalPosition
- void onPositionChanged(
- DragUpdateDetails details
- void onSwipeStart(
- DragStartDetails details
- void onSwipeCancel(
- Offset position,
- DragEndDetails details
- void onSwipeEnd(
- Offset position,
- DragEndDetails details
- Stream<
double> ? swipe, - int? animationDuration = 300,
- Curve? animationCurve = Curves.easeInOut,
- bool horizontalSwipe = true,
- bool verticalSwipe = true,
- double? threshold = 0.3,
Implementation
const Swipable({
super.key,
@required this.child,
this.onSwipeRight,
this.onSwipeLeft,
this.onSwipeDown,
this.onSwipeUp,
this.onPositionChanged,
this.onSwipeStart,
this.onSwipeCancel,
this.onSwipeEnd,
this.swipe,
this.animationDuration = 300,
this.animationCurve = Curves.easeInOut,
this.horizontalSwipe = true,
this.verticalSwipe = true,
this.threshold = 0.3,
});