fix choose_game_view not saving
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m5s

This commit is contained in:
2026-01-03 10:16:28 +01:00
parent d081a597db
commit e4ae526d93

View File

@@ -47,7 +47,17 @@ class _ChooseGameViewState extends State<ChooseGameView> {
),
centerTitle: true,
),
body: Column(
body: PopScope(
canPop: false,
onPopInvokedWithResult: (bool didPop, Object? result) {
print(result);
print(didPop);
if (didPop) {
return;
}
Navigator.of(context).pop(selectedGameIndex);
},
child: Column(
children: [
Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
@@ -81,6 +91,7 @@ class _ChooseGameViewState extends State<ChooseGameView> {
),
],
),
),
);
}
}