exitFullScreen method
播放器退出全屏
Implementation
Future<void> exitFullScreen() async {
// 使用 FullScreenUtil 统一处理全屏系统 UI 设置
await FullScreenUtil.exitFullScreen();
final data = _fullController._widgetData;
if (data == null) return;
_fullController.getCurrentPosition().then((position) {
data.startTime = position;
_fullController.syncStateTo(_fullController);
// 先暂停播放器
_fullController.stop();
// 销毁全屏播放器
_fullController.destroy();
// 返回竖屏播放器
Navigator.pop(_context, data);
});
}