title: Flutter touchable library
body: <p>Good day to all. I wanted to use the touchable tool, which allows you to read clicks on the canvas, but there was an error with gesture_detector, which I don't understand how to fix. Here is the code I wrote:</p>
  <pre><code>Container(
        child: FittedBox(
            child: tooth.length == 20 &amp;&amp; mouth != null
                ? SizedBox(
                    width: mouth?.width.toDouble(),
                    height: mouth?.height.toDouble(),
                    child: CanvasTouchDetector(
                      builder: (context) =&gt; CustomPaint(
                        painter:
                            FaceOutlinePainter(context),
                      ),
                    ))
                : Text('data')),
      ),
  </code></pre>
  <p>And Flutter sends me to this error. As I understand it, it does not depend on CustomPaint.</p>
  <pre><code>throw FlutterError.fromParts(&lt;DiagnosticsNode&gt;[
                  ErrorSummary('Incorrect GestureDetector arguments.'),
                  ErrorDescription(
                    'Having both a pan gesture recognizer and a scale gesture recognizer is redundant; scale is a superset of pan.',
                  ),
                  ErrorHint('Just use the scale gesture recognizer.'),
                ]);
  </code></pre>
  <p>I will be very grateful for your help.</p>
  <p>With best wishes,
  from Dmitry</p>