Input changed to copy instead of reference
This commit is contained in:
@@ -320,12 +320,13 @@ class _CreateGameViewState extends State<CreateGameView> {
|
|||||||
isPointsLimitEnabled: _isPointsLimitEnabled!,
|
isPointsLimitEnabled: _isPointsLimitEnabled!,
|
||||||
);
|
);
|
||||||
final index = await gameManager.addGameSession(gameSession);
|
final index = await gameManager.addGameSession(gameSession);
|
||||||
|
final session = gameManager.gameList[index];
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
Navigator.pushReplacement(
|
Navigator.pushReplacement(
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
builder: (context) => ActiveGameView(
|
builder: (context) =>
|
||||||
gameSession: gameManager.gameList[index])));
|
ActiveGameView(gameSession: session)));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user