mod: 播放器实例销毁、页面层级

This commit is contained in:
guozhigq
2023-08-14 17:54:22 +08:00
parent 5600ab5203
commit 9b7d6d105a
4 changed files with 30 additions and 80 deletions

View File

@ -483,7 +483,11 @@ class _HeaderControlState extends State<HeaderControl> {
size: 15,
color: Colors.white,
),
fuc: () => Get.offAll(const MainApp()),
fuc: () {
// 销毁播放器实例
widget.controller!.dispose(type: 'all');
Get.offAll(const MainApp());
},
),
const Spacer(),
// ComBtn(