Changed state handling

This commit is contained in:
2025-07-03 13:05:28 +02:00
parent f9fac719b0
commit 2c1d65c403

View File

@@ -169,18 +169,19 @@ class _MainMenuViewState extends State<MainMenuView> {
CupertinoIcons.person_2_fill), CupertinoIcons.person_2_fill),
], ],
), ),
onTap: () async { onTap: () {
//ignore: unused_local_variable final session =
final val = await Navigator.push( gameManager.gameList[index];
Navigator.push(
context, context,
CupertinoPageRoute( CupertinoPageRoute(
builder: (context) => builder: (context) =>
ActiveGameView( ActiveGameView(
gameSession: gameManager gameSession: session),
.gameList[index]),
), ),
); ).then((_) {
setState(() {}); setState(() {});
});
}, },
), ),
), ),