Fix: Check canPop before pop
This commit is contained in:
parent
2cd8ff6a46
commit
79b5b835b4
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ class ImportCodePage extends StatelessWidget {
|
|||
iconButtonType: IconButtonType.secondary,
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
Navigator.pop(context);
|
||||
if(Navigator.canPop(context)) {
|
||||
Navigator.pop(context);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue