Skip to content
pubscout

simple_gesture_detector

0.2.1, released 3 years ago by an unverified publisher

A lightweight and easy-to-use gesture detector for Flutter apps.

WASM-ready
$ flutter pub add simple_gesture_detector
Source repository

What it does

Exposes a simple API to react to basic gestures such as taps, double taps, long presses, and swipe gestures. It allows you to configure gesture recognition and provides continuous detection behaviors.

AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to detect swipe gestures with simple callbacks
  • You want a simpler or more specific wrapper over standard gesture handling for basic interactions

Skip it when

  • You need complex multi-touch or specialized gesture recognition not covered by basic taps and swipes
  • Flutter's built-in GestureDetector already entirely meets your gesture detection requirements

Strengths

  • Easy to use and lightweight
  • Simplifies swipe gesture handling with exposed callbacks
  • Supports basic tap, double tap, and long press gestures

Weaknesses

  • Limited to basic gestures
  • Not documented for advanced multi-pointer or custom gesture recognizers

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SimpleGestureDetector(
  onTap: () => print('Tap'),
  child: Container(color: Colors.red),
)

Alternatives

Packages that do the same job and could replace simple_gesture_detector.

Works with

Packages commonly used together with simple_gesture_detector: ones it builds on, ones built on it, and its own family.