multi_finger_gesture_detector 1.0.1 copy "multi_finger_gesture_detector: ^1.0.1" to clipboard
multi_finger_gesture_detector: ^1.0.1 copied to clipboard

Multi Finger Gesture Detector is custom widget for detecting multiple fingers gestures, Its use GestureDetector Widget to detect gestures.

The MultiFingerGestureDetector widget is a custom widget that detects different types of gestures with multiple fingers. It takes three callbacks as parameters: onGestureStart, onGestureUpdate, and onGestureEnd. These callbacks are invoked when the corresponding gesture events occur.

Available GestureTypes #

  • Tap
  • TwoFingerDrag
  • TwoFingerTopVerticalDrag
  • TwoFingerBottomVerticalDrag
  • TwoFingerLeftHorizontalDrag
  • TwoFingerRightHorizontalDrag
  • ThreeFingerDrag
  • ThreeFingerTopVerticalDrag
  • ThreeFingerBottomVerticalDrag
  • ThreeFingerLeftHorizontalDrag
  • ThreeFingerRightHorizontalDrag
  • FourFingerDrag
  • FourFingerTopVerticalDrag
  • FourFingerBottomVerticalDrag
  • FourFingerLeftHorizontalDrag
  • FourFingerRightHorizontalDrag

Usage #

MultiFingerGestureDetector(
  onGestureStart: (gestureType, offset) {
          debugPrint('On Gesture Start');
          debugPrint(gestureType.name);
          debugPrint('offset: x=${offset.dx} y=${offset.dy}');
          debugPrint('-------------------------');
        },
        onGestureUpdate: (gestureType, offset) {
          debugPrint('On Gesture Update');
          debugPrint(gestureType.name);
          debugPrint('offset: x=${offset.dx} y=${offset.dy}');
          debugPrint('-------------------------');
        },
        onGestureEnd: (gestureType, offset) {
          debugPrint('On Gesture End');
          debugPrint(gestureType.name);
          debugPrint('offset: x=${offset.dx} y=${offset.dy}');
          debugPrint('-------------------------');
        },
        child: SizedBox(
          height: MediaQuery.of(context).size.height,
          width: double.maxFinite,
          child: ColoredBox(
            color: Colors.blue.shade200,
          ),
        ),
)
3
likes
160
points
167
downloads

Publisher

unverified uploader

Weekly Downloads

Multi Finger Gesture Detector is custom widget for detecting multiple fingers gestures, Its use GestureDetector Widget to detect gestures.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on multi_finger_gesture_detector