flutter_swipe_detector
2.0.0, released 5 years ago by baseflow.com
A Flutter widget to detect swipe directions and provide callbacks for gestures.
WASM-ready
What it does
A package that detects various swipe directions (up, down, left, right) and offers callbacks to handle them. It includes a widget wrapper that simplifies gesture detection on its child elements.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to detect directional swipes on specific widgets.
- You want easy-to-use callbacks for up, down, left, and right swipes.
Skip it when
- You require complex multi-touch gesture recognition beyond basic directional swipes.
Strengths
- Simple and straightforward API with specific direction callbacks.
- Provides offset details and live feedback options.
Weaknesses
- Limited to basic directional swipe detection.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
SwipeDetector(
onSwipe: (direction, offset) {
_addSwipe(direction);
},
child: const Container(
child: Text('Swipe me!'),
),
)Alternatives
Packages that do the same job and could replace flutter_swipe_detector.
- simple_gesture_detector
Provides similar gesture and swipe detection functionality.
50Compare