Use GestureDetector in the framework and examples
We're now using it at the widget layer for everything except scrolling and flinging.
This commit is contained in:
@@ -84,7 +84,9 @@ class WidgetTester {
|
||||
}
|
||||
|
||||
void tap(Widget widget) {
|
||||
dispatchEvent(new TestGestureEvent(type: 'gesturetap'), getCenter(widget));
|
||||
Point location = getCenter(widget);
|
||||
dispatchEvent(new TestPointerEvent(type: 'pointerdown', x: location.x, y: location.y), location);
|
||||
dispatchEvent(new TestPointerEvent(type: 'pointerup', x: location.x, y: location.y), location);
|
||||
}
|
||||
|
||||
void scroll(Widget widget, Offset offset) {
|
||||
|
||||
Reference in New Issue
Block a user