fix: 弹幕显示&弹幕设置缓存

This commit is contained in:
guozhigq
2024-06-11 22:59:07 +08:00
parent a9428fdc72
commit b511519323

View File

@ -413,7 +413,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
height: 32, height: 32,
child: TextButton( child: TextButton(
style: ButtonStyle( style: ButtonStyle(
padding: WidgetStateProperty.all(EdgeInsets.zero), padding: MaterialStateProperty.all(EdgeInsets.zero),
), ),
onPressed: () => vdCtr.showShootDanmakuSheet(), onPressed: () => vdCtr.showShootDanmakuSheet(),
child: child:
@ -612,16 +612,18 @@ class _VideoDetailPageState extends State<VideoDetailPage>
child: videoPlayerPanel, child: videoPlayerPanel,
), ),
/// 关闭自动播放时 手动播放 /// 关闭自动播放时 手动播放
Obx( Obx(
() => Visibility( () => Visibility(
visible: !vdCtr.autoPlay.value && visible: !vdCtr.autoPlay.value &&
vdCtr.isShowCover.value, vdCtr.isShowCover.value,
child: Positioned( child: Positioned(
top: 0, top: 0,
left: 0, left: 0,
right: 0, right: 0,
child: handlePlayPanel(), child: handlePlayPanel(),
),
),
), ),
], ],
), ),