From 8f2c7493d081342bf26e01b07f3c399777258f8a Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Fri, 5 Dec 2025 19:35:04 +0100 Subject: [PATCH] re-set gameListFuture to reload the games after changing the winner --- lib/presentation/views/main_menu/game_history_view.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/presentation/views/main_menu/game_history_view.dart b/lib/presentation/views/main_menu/game_history_view.dart index 713b720..1356ee4 100644 --- a/lib/presentation/views/main_menu/game_history_view.dart +++ b/lib/presentation/views/main_menu/game_history_view.dart @@ -115,9 +115,12 @@ class _GameHistoryViewState extends State { GameResultView(game: games[index]), ), ); + setState(() { + _gameListFuture = db.gameDao.getAllGames(); + }); }, game: games[index], - ); // Placeholder + ); }, ), );