From 584dc87fd276930839117354d4a441ef5d8809a7 Mon Sep 17 00:00:00 2001 From: gxz Date: Fri, 6 Dec 2024 18:36:57 +0800 Subject: [PATCH] fix: pipi --- .../advanced/picture_in_picture/picture_in_picture.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();