simple_gesture_detector
v0.2.1Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.
Package archive: https://pubdev.letsnova.ru/api/archives/simple_gesture_detector/0.2.1.tar.gz
Install
dart pub add simple_gesture_detectorReadme
Simple Gesture Detector
Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.
Features
- Detect swipe gesture - and expose simple callbacks
- Detect tap gestures (onTap, onDoubleTap, onLongPress)
- Configure gesture recognition
Usage
Make sure to check out example project. For additional info please refer to API docs.
Installation
Add to pubspec.yaml:
dependencies:
simple_gesture_detector: ^0.2.1
Changelog
[0.2.1]
- Upgraded to Dart 3
[0.2.0]
- Migrated to null safety
[0.1.6]
- Migrated to AndroidX
[0.1.5]
- Fixed potential null swipeOffset issue
[0.1.4]
- Added onTap
- Added onDoubleTap
- Added onLongPress
- Updated dependencies
[0.1.3]
- Added non-distinct continuous detection behavior
- Fixed minor issue with previousDirection
- Improved names of
SwipeDetectionBehaviorenum values
[0.1.2]
- Added continuous detection behavior
- Merged swipe callbacks
- Added
SwipeDirectionenum - Updated example project
[0.1.1]
- Added documentation
[0.1.0] - Initial release
- Added easy to use swipe gesture (both vertical and horizontal)
- Example included
