fix: 视频全屏遮挡 issues #347
This commit is contained in:
@ -90,6 +90,8 @@ class VideoDetailController extends GetxController
|
||||
late String cacheDecode;
|
||||
late int cacheAudioQa;
|
||||
|
||||
PersistentBottomSheetController? replyReplyBottomSheetCtr;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
@ -140,7 +142,7 @@ class VideoDetailController extends GetxController
|
||||
}
|
||||
|
||||
showReplyReplyPanel() {
|
||||
PersistentBottomSheetController? ctr =
|
||||
replyReplyBottomSheetCtr =
|
||||
scaffoldKey.currentState?.showBottomSheet((BuildContext context) {
|
||||
return VideoReplyReplyPanel(
|
||||
oid: oid.value,
|
||||
@ -153,7 +155,7 @@ class VideoDetailController extends GetxController
|
||||
source: 'videoDetail',
|
||||
);
|
||||
});
|
||||
ctr?.closed.then((value) {
|
||||
replyReplyBottomSheetCtr?.closed.then((value) {
|
||||
fRpid = 0;
|
||||
});
|
||||
}
|
||||
@ -372,4 +374,11 @@ class VideoDetailController extends GetxController
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// mob端全屏状态关闭二级回复
|
||||
hiddenReplyReplyPanel() {
|
||||
replyReplyBottomSheetCtr != null
|
||||
? replyReplyBottomSheetCtr!.close()
|
||||
: print('replyReplyBottomSheetCtr is null');
|
||||
}
|
||||
}
|
||||
|
@ -92,6 +92,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
videoSourceInit();
|
||||
appbarStreamListen();
|
||||
lifecycleListener();
|
||||
fullScreenStatusListener();
|
||||
}
|
||||
|
||||
// 获取视频资源,初始化播放器
|
||||
@ -188,6 +189,14 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
);
|
||||
}
|
||||
|
||||
void fullScreenStatusListener() {
|
||||
plPlayerController?.isFullScreen.listen((bool isFullScreen) {
|
||||
if (isFullScreen) {
|
||||
videoDetailController.hiddenReplyReplyPanel();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
shutdownTimerService.handleWaitingFinished();
|
||||
|
Reference in New Issue
Block a user