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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user