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:
CustomTheme.backgroundColor,
onTap: () => {
gameSession.roundNumber > 1 &&
!gameSession.isGameFinished
? _showEndGameDialog()
: null
}),
onTap: () {
if (gameSession.roundNumber > 1 &&
!gameSession.isGameFinished) {
_showEndGameDialog();
}
}),
CupertinoListTile(
title: Text(
AppLocalizations.of(context).delete_game,