Updated onTap Handler

This commit is contained in:
2025-07-06 00:39:55 +02:00
parent aa33845113
commit 003e80c6ff

View File

@@ -151,12 +151,12 @@ class _ActiveGameViewState extends State<ActiveGameView> {
), ),
backgroundColorActivated: backgroundColorActivated:
CustomTheme.backgroundColor, CustomTheme.backgroundColor,
onTap: () => { onTap: () {
gameSession.roundNumber > 1 && if (gameSession.roundNumber > 1 &&
!gameSession.isGameFinished !gameSession.isGameFinished) {
? _showEndGameDialog() _showEndGameDialog();
: null }
}), }),
CupertinoListTile( CupertinoListTile(
title: Text( title: Text(
AppLocalizations.of(context).delete_game, AppLocalizations.of(context).delete_game,