diff --git a/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart b/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart index ceba00f4e..84fc80b9e 100644 --- a/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart +++ b/example/lib/examples/advanced/picture_in_picture/picture_in_picture.dart @@ -70,7 +70,9 @@ class _State extends State with WidgetsBindingObserver { @override Future dispose() async { - await _engine.stopPip(); + if(Platform.isIOS){ + await _engine.stopPip(); + } WidgetsBinding.instance.removeObserver(this); _dispose(); super.dispose();