Introduce TapDownDetails and TapUpDetails (#4431)

We have these details objects for the same reason we now have drag details
objects: future extensibility.
This commit is contained in:
Adam Barth
2016-06-07 16:16:53 -07:00
parent cd23ca1242
commit 7d9f8d903d
11 changed files with 83 additions and 42 deletions

View File

@@ -108,7 +108,7 @@ class CardBuilder extends LazyBlockDelegate {
CardModel cardModel = cardModels[index];
return new GestureDetector(
key: cardModel.key,
onTapUp: (Point globalPosition) { onTapUp(cardModel.targetKey, globalPosition); },
onTapUp: (TapUpDetails details) { onTapUp(cardModel.targetKey, details.globalPosition); },
child: new Card(
key: cardModel.targetKey,
color: cardModel.color,