StatelessWidget

@override

Widget

build

BuildContext

context

return

GestureDetector

onPanStart:

details

debugPrint

'onStart'

);

},

onPanUpdate:

details

debugPrint

'onUpdate'

);

},

onPanEnd:

details

debugPrint

'onEnd'

);

child:

Container

()

);

Migration guide

Migration steps depend on whether you want each gesture interaction in your
app to be usable via a trackpad, or whether it should be restricted to only
touch and mouse usage.