gesture_x_detector
1.1.1, released 5 years ago by an unverified publisher
A lightweight Flutter widget that detects multiple gestures simultaneously.
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.
- segment_display
Segment display widget for Flutter supporting 7, 14, and 16 segment displays with customizable styles
64Compare - easy_container
A customizable container with built‑in gesture handling
62Compare - gestures
Custom gesture detector widget for Flutter
50Compare - simple_gesture_detector
A lightweight and easy-to-use gesture detector for Flutter apps.
50Compare
Works with
Packages commonly used together with gesture_x_detector: ones it builds on, ones built on it, and its own family.