touchable
touchable copied to clipboard
Example doesn't work out of the box
Steps to repro:
- clone this repo.
- run the example
- 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.
The same problem
@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(...))