flutter: Call SystemNavigator.pop only on Android
This commit is contained in:
parent
d9f973312a
commit
b7098cd2b9
|
@ -80,7 +80,9 @@ class _GameSettingsPageState extends State<GameSettingsPage> {
|
|||
|
||||
if (snapshot.data == 0) {
|
||||
_restore();
|
||||
SystemChannels.platform.invokeMethod('SystemNavigator.pop');
|
||||
if (Platform.isAndroid) {
|
||||
SystemChannels.platform.invokeMethod('SystemNavigator.pop');
|
||||
} else {}
|
||||
}
|
||||
|
||||
return Container(
|
||||
|
|
Loading…
Reference in New Issue