Overview
swipedetector is a lightweight Flutter package designed to detect directional swipes—up, down, left, and right—on touch-enabled devices. It simplifies gesture recognition by providing a clean API to listen for swipe events without requiring complex custom gesture detectors. Ideal for apps needing intuitive touch navigation, such as sliders, card-based interfaces, or interactive tutorials. The package focuses solely on swipe detection, making it efficient and easy to integrate.
Use cases
- Card flipping interfaces
- Swipe-based navigation
- Interactive onboarding screens
- Gesture-driven game controls
- Simple touch-based UI interactions
Key features
- Detects up, down, left, and right swipes
- Minimal setup with clear API
- Lightweight and focused functionality
- No external dependencies
- Works across all platforms
Suitable for
- Developers building touch-heavy UIs
- Apps with swipe-based navigation
- Simple gesture recognition needs
- Prototyping interactive layouts
- Educational or tutorial apps
Considerations
- Does not support pinch or rotate gestures
- Limited to basic swipe directions
- No built-in animation support
- Requires manual handling of swipe thresholds
- Not suitable for complex multi-gesture scenarios