Updated navigation for creating a game
This commit is contained in:
@@ -221,7 +221,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
backgroundColorActivated:
|
backgroundColorActivated:
|
||||||
CustomTheme.backgroundColor,
|
CustomTheme.backgroundColor,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pushReplacement(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
builder: (_) => CreateGameView(
|
builder: (_) => CreateGameView(
|
||||||
|
|||||||
@@ -452,10 +452,12 @@ class _CreateGameViewState extends State<CreateGameView> {
|
|||||||
gameManager.addGameSession(gameSession);
|
gameManager.addGameSession(gameSession);
|
||||||
final session = gameManager.getGameSessionById(id) ?? gameSession;
|
final session = gameManager.getGameSessionById(id) ?? gameSession;
|
||||||
|
|
||||||
Navigator.pushReplacement(
|
Navigator.pushAndRemoveUntil(
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
builder: (context) => ActiveGameView(gameSession: session)));
|
builder: (context) => ActiveGameView(gameSession: session)),
|
||||||
|
(Route<dynamic> route) => route.isFirst,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user