Created
November 10, 2020 00:02
-
-
Save AlabasterAxe/a1b17f9ad4813b4f365c91fe8d224545 to your computer and use it in GitHub Desktop.
Listen for taps to trigger the dinosaur's jump.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return Scaffold( | |
| appBar: AppBar( | |
| title: Text(widget.title), | |
| ), | |
| body: GestureDetector( | |
| behavior: HitTestBehavior.translucent, | |
| onTap: () { | |
| dino.jump(); | |
| }, | |
| child: Stack( | |
| alignment: Alignment.center, | |
| children: children, | |
| ), | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment