double_tap_player_view library
Classes
- DoubleTapConfig
- widget config for DoubleTapPlayerView about double tap event
- DoubleTapPlayerView
- widget to detect double tap and horizontal drag. this widget is usual to handle fast forward/rewind behavior like a video player.
- SwipeConfig
- widget config for DoubleTapPlayerView about horizontal swipe event
- SwipeData
-
data model for swipe event.
startDx
is Offset.dx of drag start. it's from DragStartDetails.localPositioncurrentDx
is Offset.dx of last drag event. it's from DragUpdateDetails.localPosition
Enums
- Lr
- status of left or right
Typedefs
- DoubleTapCallback = void Function(Lr lr)
-
Signature of callback that have
lr
- OnDragCallback = void Function(SwipeData? data)
- Signature of callback that have SwipeData
- OnDragStartCallback = void Function(double dx)
- Signature of callback that have horizontal tap position
- SwipeOverlayBuilder = Widget Function(SwipeData data)
- Signature of widget creation from SwipeData
- TapCountWidgetBuilder = Widget Function(Lr lr, int tapCount)
- Signature of widget creation from tap count and L/R
- TextBuilder = String Function(Lr lr, int tapCount)
- Signature of string creation from tap count and L/R