runApp

Foo

());

class

Foo

extends

StatelessWidget

@override

Widget

build

BuildContext

context

return

RawGestureDetector

gestures:

PanGestureRecognizer:

GestureRecognizerFactoryWithHandlers

PanGestureRecognizer

>(

()

PanGestureRecognizer

supportedDevices:

PointerDeviceKind

touch

PointerDeviceKind

mouse

PointerDeviceKind

stylus

PointerDeviceKind

invertedStylus

// Do not include PointerDeviceKind.trackpad

),