How to disable multi-touch in mobile application using flutter

后端 未结 3 1100
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 18:41

This question is purely based on GestureDetector flutter.

For Example: In Application, GestureDetector class is implemented so here by-defa

3条回答
  •  执念已碎
    2020-12-06 18:53

    It sounds like you want a MultiDragGestureRecognizer. You'll need to create a StatefulWidget that instantiates the MultiDragGestureRecognizer, then have your build function have a Listener that routes the onPointerDown event to the recognizer. We could probably add that recognizer to GestureDetector itself, or provide a widget that wraps that recognizer, if it's something people do commonly. More importantly, we should probably document this. I'm leaving this bug open for that purpose. flutter gestures library

提交回复
热议问题