);

child:

Container

()

);

Using RawGestureRecognizer

Explicitly ensure that supportedDevices
doesn’t include PointerDeviceKind.trackpad.

Code before migration:

void

main

()

runApp

Foo

());

class

Foo

extends

StatelessWidget

@override

Widget

build

BuildContext

context

return

RawGestureDetector

gestures:

PanGestureRecognizer:

GestureRecognizerFactoryWithHandlers

PanGestureRecognizer

>(

()

PanGestureRecognizer

(),