Refactored variable & changing limit from 101 to 101

This commit is contained in:
Felix Kirchner
2025-04-29 18:56:44 +02:00
parent ad1bd263a9
commit 7a0959c263
3 changed files with 19 additions and 17 deletions

View File

@@ -131,7 +131,8 @@ class _CreateGameState extends State<CreateGame> {
showCupertinoDialog(
context: context,
builder: (context) => CupertinoAlertDialog(
title: const Text('Maximale Spielerzahl erreicht'),
title:
const Text('Maximale Spielerzahl erreicht'),
content: const Text(
'Es können maximal 5 Spieler hinzugefügt '
'werden.'),
@@ -276,7 +277,8 @@ class _CreateGameState extends State<CreateGame> {
GameSession gameSession = GameSession(
gameTitle: _gameTitleTextController.text,
players: players,
pointLimit: selectedMode == '101 Pkt.' ? true : false,
gameHasPointLimit:
selectedMode == '101 Pkt.' ? true : false,
);
Navigator.push(
context,