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:
Adam Barth
2015-08-28 10:58:06 -07:00
parent a46b83da80
commit dc84e882df
23 changed files with 92 additions and 121 deletions

View File

@@ -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) {