gestures
1.0.0, released 5 years ago by andrebaltazar.com
Custom gesture detector widget for Flutter
WASM-ready
What it does
Provides a custom gesture detector widget that allows users to perform custom drawn gestures using lines in specified axes directions. Triggers a callback when the gesture sequence ends successfully.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need custom shape or line-based gesture recognition in your app
- Users need to input custom drawn patterns or directional gesture sequences
Skip it when
- You only need standard Flutter gestures like taps, double taps, or basic pans
- You need complex machine learning-based gesture or handwriting recognition
Strengths
- Easy to integrate widget for custom gesture detection
- Supports null safety and hit behavior forwarding
Weaknesses
- Limited built-in documentation and gesture types shown in the example
- No active development mentioned recently
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Widget build(BuildContext context) {
return CustomGestureDetector(
gestures: [
GestureLine(AxisDirection.down),
GestureLine(AxisDirection.right),
GestureLine(AxisDirection.up),
],
onGestureEnd: (success) {
if (success) {
// TODO: your action here..
}
},
child: Container(),
);
}Alternatives
Packages that do the same job and could replace gestures.
- custom_refresh_indicator
Widget that makes it easy to implement a custom pull to refresh gesture.
81Compare - one_dollar_unistroke_recognizer
A 2D single-stroke gesture and shape recognizer for Dart and Flutter.
68Compare - easy_container
A customizable container with built‑in gesture handling
62Compare - simple_gesture_detector
A lightweight and easy-to-use gesture detector for Flutter apps.
50Compare