Added rootNavigator attribute to fullscreenDialog above the tab bar
This commit is contained in:
@@ -82,8 +82,9 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
||||
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(
|
||||
|
||||
@@ -293,8 +293,8 @@ class _RoundViewState extends State<RoundView> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user