Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 614 Bytes

multiplegesturedetector.md

File metadata and controls

22 lines (18 loc) · 614 Bytes

Multiple gesture detector

If you need to wrap BetterPlayer widget with GestureDetector widget then you need to use BetterPlayerMultipleGestureDetector.

BetterPlayerMultipleGestureDetector(
            child: AspectRatio(
              aspectRatio: 16 / 9,
              child: BetterPlayer(controller: _betterPlayerController),
            ),
            onTap: () {
              print("Tap!");
            },
          ),

Supported gestures:

  • onTap
  • onDoubleTap
  • onLongPress

If you need to have different gestures than mentioned above then you can use default GestureDetector.