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

Example doesn't work out of the box #43

Open
mrshootingstar opened this issue Feb 10, 2022 · 2 comments
Open

Example doesn't work out of the box #43

mrshootingstar opened this issue Feb 10, 2022 · 2 comments

Comments

@mrshootingstar
Copy link

Steps to repro:

  1. clone this repo.
  2. run the example
  3. click on screen1 button.

You get this error:

Incorrect GestureDetector arguments.

Having both a pan gesture recognizer and a scale gesture recognizer is redundant; scale is a superset of pan.

Just use the scale gesture recognizer.
@littlelioncjt
Copy link

The same problem

@crumped
Copy link

crumped commented Apr 21, 2022

@mrshootingstar @littlelioncjt based on the answer -> https://stackoverflow.com/a/66122623
You have to add a list of gestures to CanvasTouchDetector
it looks something like this:

CanvasTouchDetector(
gesturesToOverride: [GestureType.onTapDown],
builder: (context) => CustomPaint(...))

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

3 participants