touchable icon indicating copy to clipboard operation
touchable copied to clipboard

Example doesn't work out of the box

Open mrshootingstar opened this issue 3 years ago • 2 comments

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.

mrshootingstar avatar Feb 10 '22 20:02 mrshootingstar

The same problem

littlelioncjt avatar Apr 14 '22 09:04 littlelioncjt

@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(...))

crumped avatar Apr 21 '22 16:04 crumped