Implemented leaving players in the player selection and filtering those who are in the group
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m11s
Pull Request Pipeline / lint (pull_request) Successful in 2m12s

This commit is contained in:
2025-12-07 22:15:19 +01:00
parent f1f3fd7b6e
commit 708157df54
2 changed files with 18 additions and 6 deletions

View File

@@ -196,7 +196,8 @@ class _CreateGameViewState extends State<CreateGameView> {
Expanded(
child: PlayerSelection(
key: ValueKey(selectedGroup?.id ?? 'no_group'),
initialPlayers: selectedGroup == null
initialSelectedPlayers: selectedPlayers ?? [],
availablePlayers: selectedGroup == null
? playerList
: playerList
.where(