Added created DateTime to game session class
This commit is contained in:
@@ -109,7 +109,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
||||
playerIndices.sort((a, b) {
|
||||
int scoreA = widget.gameSession.playerScores[a][0];
|
||||
int scoreB = widget.gameSession.playerScores[b][0];
|
||||
return scoreA.compareTo(scoreB); // Absteigende Sortierung
|
||||
return scoreA.compareTo(scoreB);
|
||||
});
|
||||
return playerIndices;
|
||||
}
|
||||
|
||||
@@ -275,7 +275,6 @@ class _CreateGameState extends State<CreateGame> {
|
||||
GameSession gameSession = GameSession(
|
||||
gameTitle: _gameTitleTextController.text,
|
||||
players: players,
|
||||
winner: players[0],
|
||||
gameMode: selectedMode == '101 Pkt.' ? 0 : 1,
|
||||
);
|
||||
Navigator.push(
|
||||
|
||||
Reference in New Issue
Block a user