single_touch_gesture 1.0.1 copy "single_touch_gesture: ^1.0.1" to clipboard
single_touch_gesture: ^1.0.1 copied to clipboard

A Flutter package that prevents multiple gesture recognition, allowing only one touch at a time.

Single Touch Gesture πŸ“±βœ¨ #

A Flutter package that prevents multiple touch gestures, allowing only one pointer at a time.

pub package
GitHub stars

πŸ“Œ Overview #

single_touch_gesture is a Flutter package that ensures only one pointer (touch event) is recognized at a time. This helps prevent unwanted multi-touch interactions in widgets like Dismissible, Checkbox, Sliders, and Buttons.

🎯 Features #

βœ… Prevents multiple gestures from being recognized at once.
βœ… Useful for gesture-sensitive widgets like swipe actions.
βœ… Works seamlessly with Flutter's GestureDetector and RawGestureDetector.
βœ… Lightweight and easy to integrate.

πŸŽ₯ Demo #

πŸ“Œ Dismissible Example #

πŸ”Ή Left : ❌ Without single_touch_gesture β†’ Multiple touches cause unexpected behavior.

πŸ”Ή Right : βœ… With single_touch_gesture β†’ Only one touch is registered at a time.

❌ Without `single_touch_gesture` βœ… With `single_touch_gesture`


πŸš€ Installation #

Add the package to your pubspec.yaml:

dependencies:
  single_touch_gesture: ^1.0.0

Then, run:

flutter pub get

πŸ“– Usage #

To see how to use single_touch_gesture, check out the example folder in the repository.


πŸ›  Development & Contribution #

Feel free to contribute! To set up the project locally:

git clone https://github.com/YashrajsinhYz/single_touch_gesture.git
cd single_touch_gesture
flutter pub get

Run Tests #

flutter test

Submit a Pull Request #

  1. Fork the repository.
  2. Create a new branch (feature-name).
  3. Make changes and commit.
  4. Push to your branch and open a PR.

πŸ“¬ Support & Issues #

  • For bug reports and feature requests, please open an issue.
  • If you like this package, give it a ⭐ on GitHub!

πŸ“œ License #

This project is licensed under the MIT License - see the LICENSE file for details.

4
likes
160
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that prevents multiple gesture recognition, allowing only one touch at a time.

Repository (GitHub)
View/report issues

Topics

#single #touch #gestures #multiple #prevention

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on single_touch_gesture