New created players will be added now at the front too
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 2m9s
Pull Request Pipeline / test (pull_request) Successful in 2m8s

This commit is contained in:
2026-01-01 17:47:15 +01:00
parent bbb7914fc5
commit 15d09f381a

View File

@@ -239,7 +239,7 @@ class _PlayerSelectionState extends State<PlayerSelection> {
bool success = await db.playerDao.addPlayer(player: createdPlayer);
if (!context.mounted) return;
if (success) {
selectedPlayers.add(createdPlayer);
selectedPlayers.insert(0, createdPlayer);
widget.onChanged([...selectedPlayers]);
allPlayers.add(createdPlayer);
setState(() {