);

@override

Widget

build

BuildContext

context

return

Listener

onPointerDown:

recognizer

addPointer

onPointerPanZoomStart:

recognizer

addPointerPanZoom

child:

Container

()

);

When using GestureDetector, this is done automatically, so code such as the
following example will issue its gesture update callbacks in response to both
touch and trackpad panning.

void

main

()

runApp

Foo

());

class

Foo

extends

StatelessWidget

@override

Widget