Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add our own Gesture Controls. #57

Open
RicardoMudinyane opened this issue Jan 22, 2025 · 0 comments
Open

Ability to add our own Gesture Controls. #57

RicardoMudinyane opened this issue Jan 22, 2025 · 0 comments

Comments

@RicardoMudinyane
Copy link

RicardoMudinyane commented Jan 22, 2025

Thanks for such a simple and yet an amazing package. 🔥

Can we please get the ability to add our own gesture controls. For example in my app I want to use onDoubleTap instead of onLongPressStart, and I don't want to select reaction onTap .

Currently I edited the package like this

GestureDetector(
     key: _globalKey,
     // onTap: () {
     //   if (widget.toggle) {
     //     _onCheck();
     //   } else {
     //     _onShowReactionsBox();
     //   }
     // },
     onLongPressStart: (details) {
       if (widget.toggle) {
         _onShowReactionsBox(_isContainer ? details.globalPosition : null);
       }
     },
     child: child,
);

It would be great to have this built directly in the package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant