fix: 在播放页点击主页导致pip失效

This commit is contained in:
orz12
2024-02-23 14:40:25 +08:00
parent 92eddbc928
commit 2671d0a130

View File

@@ -1095,7 +1095,7 @@ class _HeaderControlState extends State<HeaderControl> {
), ),
fuc: () async { fuc: () async {
// 销毁播放器实例 // 销毁播放器实例
await widget.controller!.dispose(type: 'all'); // await widget.controller!.dispose(type: 'all');
if (mounted) { if (mounted) {
Navigator.popUntil( Navigator.popUntil(
context, (Route<dynamic> route) => route.isFirst); context, (Route<dynamic> route) => route.isFirst);