Skip to content

Commit

Permalink
Flappybird: jump OnTapDown
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andrieu committed Oct 16, 2024
1 parent f68b159 commit 5bd4a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flappybird/ui/pages/game_page/game_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class GamePage extends HookConsumerWidget {
child: LayoutBuilder(
builder: (context, constraints) {
return GestureDetector(
onTap: () {
onTapDown: (details) {
if (!gameStarted) {
gameStartNotifier.setState(true);
pipePassed.value = false;
Expand Down

0 comments on commit 5bd4a30

Please sign in to comment.