Skip to content
pubscout

gesture_x_detector

1.1.1, released 5 years ago by an unverified publisher

A lightweight Flutter widget that detects multiple gestures simultaneously.

WASM-ready
$ flutter pub add gesture_x_detector
Source repository

What it does

Provides a single widget that can recognize tap, double‑tap, long‑press, move, scale and scroll gestures. All callbacks can be used together and timings are configurable.

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

Use it when

  • You need to handle several gesture types on the same widget without nesting multiple GestureDetectors.
  • You want simple, configurable timing for double‑tap or long‑press detection.

Skip it when

  • You require complex gesture arenas or custom recognizers beyond the provided set.
  • You prefer a fully‑tested, widely‑adopted solution from the Flutter SDK.

Strengths

  • Supports many gesture types in one widget
  • Customizable double‑tap and long‑press thresholds
  • Lightweight and easy to add

Weaknesses

  • Limited documentation and examples
  • No advanced gesture‑arena handling
  • Not a standard Flutter package, so community support may be low

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:flutter/material.dart';
import 'package:gesture_x_detector/gesture_x_detector.dart';

void main() => runApp(MaterialApp(home: Scaffold(body: XGestureDetector(
  child: Center(child: Text('Tap me')),
  onTap: (e) => print('tap'),
  onDoubleTap: (e) => print('double tap'),
))));

Alternatives

Packages that do the same job and could replace gesture_x_detector.

Works with

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