Changed argument order

This commit is contained in:
2025-07-10 20:14:50 +02:00
parent 2f225c9b23
commit 1c505916f3

View File

@@ -143,7 +143,7 @@ class _MainMenuViewState extends State<MainMenuView> {
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<MainMenuView> {
/// Returns true if the user confirms the deletion, false otherwise.
/// [gameTitle] is the title of the game session to be deleted.
Future<bool> _showDeleteGamePopup(
String gameTitle, BuildContext context) async {
BuildContext context, String gameTitle) async {
return await showCupertinoDialog<bool>(
context: context,
builder: (BuildContext context) {