Viewing version 0.2.1. Open the latest package page.
simple_gesture_detector
0.2.1Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.
Readme
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
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'simple_gesture_detector:0.2.1'pubspec.yaml
name: simple_gesture_detector
description: Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.
version: 0.2.1
author: Aleksander Woźniak <aleksanderwozniak96@gmail.com>
homepage: https://github.com/aleksanderwozniak/simple_gesture_detector
environment:
sdk: ">=2.12.0 <4.0.0"
flutter: ">=1.17.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
flutter:Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.1.0 | On demand | Download | bc07464a…e274d2 |
| 0.1.1 | On demand | Download | 9b4e283f…787b00 |
| 0.1.2 | On demand | Download | 3bc20b95…fe1782 |
| 0.1.3 | On demand | Download | 109cc236…7ac6f3 |
| 0.1.4 | On demand | Download | c5c9332c…0294c8 |
| 0.1.5 | On demand | Download | eba83182…102fd7 |
| 0.1.6 | On demand | Download | 7ab8ee20…01eb42 |
| 0.2.0-nullsafety.0 | On demand | Download | b6e99734…4529bf |
| 0.2.0-nullsafety.1 | On demand | Download | d8bd27c5…b88826 |
| 0.2.0 | On demand | Download | 86d08f85…c36592 |
| 0.2.1 | Cached · Upstream SHA-256 matched | Download | ba2cd5af…9d19a3 |
Dependencies
flutter {
"sdk": "flutter"
}