re-set gameListFuture to reload the games after changing the winner
This commit is contained in:
@@ -115,9 +115,12 @@ class _GameHistoryViewState extends State<GameHistoryView> {
|
||||
GameResultView(game: games[index]),
|
||||
),
|
||||
);
|
||||
setState(() {
|
||||
_gameListFuture = db.gameDao.getAllGames();
|
||||
});
|
||||
},
|
||||
game: games[index],
|
||||
); // Placeholder
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user