diff --git a/lib/views/active_game_view.dart b/lib/views/active_game_view.dart index 85d5a70..b1dc0eb 100644 --- a/lib/views/active_game_view.dart +++ b/lib/views/active_game_view.dart @@ -82,8 +82,9 @@ class _ActiveGameViewState extends State { style: TextStyle(fontSize: 22)), onTap: () async { // ignore: unused_local_variable - final val = await Navigator.push( - context, + final val = + await Navigator.of(context, rootNavigator: true) + .push( CupertinoPageRoute( fullscreenDialog: true, builder: (context) => RoundView( diff --git a/lib/views/round_view.dart b/lib/views/round_view.dart index 9a5a035..0949037 100644 --- a/lib/views/round_view.dart +++ b/lib/views/round_view.dart @@ -293,8 +293,8 @@ class _RoundViewState extends State { if (widget.gameSession.isGameFinished == true) { Navigator.pop(context, widget.gameSession); } else { - Navigator.pushReplacement( - context, + Navigator.of(context, rootNavigator: true) + .pushReplacement( CupertinoPageRoute( builder: (context) => RoundView( gameSession: widget.gameSession,