Use VoidCallback for onPressed and friends

Previous these callbacks were leaking the implementation detail that they were
triggered by taps. In a later patch, we're going to add a parameter to
GestureTapCallback that these callbacks won't have.

Related to #1807
This commit is contained in:
Adam Barth
2015-10-27 10:21:10 -07:00
parent 93622ebd41
commit d6dc9d47b8
11 changed files with 13 additions and 11 deletions

View File

@@ -141,7 +141,7 @@ class TextureButton extends StatefulComponent {
this.height: 128.0
}) : super(key: key);
final GestureTapCallback onPressed;
final VoidCallback onPressed;
final Texture texture;
final Texture textureDown;
final double width;