Made cleaner version
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s

This commit is contained in:
2025-12-29 19:28:47 +01:00
parent 884680d329
commit 31c8598222
2 changed files with 7 additions and 2 deletions

View File

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

View File

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