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

Error: Having both a Pan Gesture Recogniser and a Scale Gesture Recogniser is redundant #47

Closed
nialljawad96 opened this issue May 2, 2022 · 1 comment

Comments

@nialljawad96
Copy link

nialljawad96 commented May 2, 2022

Since upgrading to Flutter 2.10.4, the plugin is returning an error:

The following assertion was thrown building CanvasTouchDetector(dirty, state: _CanvasTouchDetectorState#55157):
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.

My implementation uses onTapDown with an svg. Prior to upgrading Flutter, the plugin was working perfectly.

Any solutions to this?

@nialljawad96
Copy link
Author

Appears to be a duplicate of Issue #43. The following needs to be added below the CanvasTouchDetector, in my case since I am using the OnTapDown gesture:

gesturesToOverride: [GestureType.onTapDown],

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