From 1c505916f3a42a2a3fda44af57b8047ed6c3788c Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Thu, 10 Jul 2025 20:14:50 +0200 Subject: [PATCH] Changed argument order --- lib/presentation/views/main_menu_view.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/presentation/views/main_menu_view.dart b/lib/presentation/views/main_menu_view.dart index ee36d1f..f6c1a32 100644 --- a/lib/presentation/views/main_menu_view.dart +++ b/lib/presentation/views/main_menu_view.dart @@ -143,7 +143,7 @@ class _MainMenuViewState extends State { final String gameTitle = gameManager .gameList[index].gameTitle; return await _showDeleteGamePopup( - gameTitle, context); + context, gameTitle); }, onDismissed: (direction) { gameManager @@ -263,7 +263,7 @@ class _MainMenuViewState extends State { /// Returns true if the user confirms the deletion, false otherwise. /// [gameTitle] is the title of the game session to be deleted. Future _showDeleteGamePopup( - String gameTitle, BuildContext context) async { + BuildContext context, String gameTitle) async { return await showCupertinoDialog( context: context, builder: (BuildContext context) {