Fehlende Aktualisierung in MatchView #101

Merged
flixcoo merged 3 commits from bug/95-fehlende-aktualisierung-in-matchview into development 2025-12-30 16:49:02 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 31c8598222 - Show all commits

View File

@@ -234,8 +234,6 @@ class _CreateMatchViewState extends State<CreateMatchView> {
players: selectedPlayers,
);
await db.matchDao.addMatch(match: match);
widget.onWinnerChanged?.call();
if (context.mounted) {
Navigator.pushReplacement(
context,

View File

@@ -38,6 +38,13 @@ class _GameResultViewState extends State<GameResultView> {
return Scaffold(
backgroundColor: CustomTheme.backgroundColor,
appBar: AppBar(
leading: IconButton(
icon: const Icon(Icons.close),
onPressed: () {
widget.onWinnerChanged?.call();
Navigator.of(context).pop();
},
),
backgroundColor: CustomTheme.backgroundColor,
scrolledUnderElevation: 0,
title: Text(