fix: 弹幕显示&弹幕设置缓存
This commit is contained in:
@ -591,27 +591,32 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
verticalScreen();
|
||||
}
|
||||
},
|
||||
child: Hero(
|
||||
tag: heroTag,
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
if (isShowing) videoPlayerPanel,
|
||||
child: LayoutBuilder(
|
||||
builder: (BuildContext context,
|
||||
BoxConstraints constraints) {
|
||||
return Hero(
|
||||
tag: heroTag,
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
if (isShowing) videoPlayerPanel,
|
||||
|
||||
/// 关闭自动播放时 手动播放
|
||||
Obx(
|
||||
() => Visibility(
|
||||
visible: !vdCtr.autoPlay.value &&
|
||||
vdCtr.isShowCover.value,
|
||||
child: Positioned(
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: handlePlayPanel(),
|
||||
/// 关闭自动播放时 手动播放
|
||||
Obx(
|
||||
() => Visibility(
|
||||
visible: !vdCtr.autoPlay.value &&
|
||||
vdCtr.isShowCover.value,
|
||||
child: Positioned(
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: handlePlayPanel(),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -1069,7 +1069,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
);
|
||||
});
|
||||
},
|
||||
);
|
||||
).then((value) {
|
||||
widget.controller!.cacheDanmakuOption();
|
||||
});
|
||||
}
|
||||
|
||||
/// 播放顺序
|
||||
|
Reference in New Issue
Block a user