Merge pull request #376 from orz12/main

fix: 修复未开启自动播放页面异常,增加全屏隐藏进度条
This commit is contained in:
guozhigq
2024-01-02 23:42:12 +08:00
committed by GitHub
3 changed files with 11 additions and 3 deletions

View File

@ -302,7 +302,10 @@ class _VideoDetailPageState extends State<VideoDetailPage>
return <Widget>[
Obx(() => SliverAppBar(
automaticallyImplyLeading: false,
pinned: false,
// 假装使用一个非空变量避免Obx检测不到而罢工
pinned: videoDetailController
.autoPlay.value ^ false ^ videoDetailController
.autoPlay.value,
elevation: 0,
scrolledUnderElevation: 0,
forceElevated: innerBoxIsScrolled,