I am writing widget tests for a widget that handles actions when the user performs a scale/zooming gesture on it by instantiating a GestureDetector with the onScaleUpdate property callback. I know how to perform drag, taps and long presses in widget tests, but I cannot find a way to perform scale gestures in widget tests.
I have tried several approaches, such as performing simultaneous drags on opposite directions:
final myWidget = find.byKey(const Key("myWidget"));
await tester.drag(myWidget, Offset(100, 0));
await tester.drag(myWidget, Offset(-100, 0));
but the drags can't happen simultaneously, the framework forces me to await until a drag is finished before performing the second drag.
Is there any way to perform scaling / pinch-to-zoom / multi finger gestures in widget tests?