暴力修复不自动播放时Obx报错的问题

用plPlayerController?.isFullScreen.value的话Obx就会识别不到有变量,所以加个额外的变量上去,过掉它的智障检测
This commit is contained in:
orz12
2024-01-02 07:51:42 +08:00
parent da3b781f34
commit 061d6e6091

View File

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