Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-20 10:00:42 +08:00
parent 488ca29fc1
commit 340a933e70
6 changed files with 43 additions and 46 deletions

View File

@@ -791,7 +791,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
Obx(
() {
final enableShowLiveDanmaku =
plPlayerController.enableShowLiveDanmaku.value;
plPlayerController.enableShowDanmaku.value;
return SizedBox(
width: 34,
height: 34,
@@ -801,8 +801,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
),
onPressed: () {
final newVal = !enableShowLiveDanmaku;
plPlayerController.enableShowLiveDanmaku.value =
newVal;
plPlayerController.enableShowDanmaku.value = newVal;
if (!plPlayerController.tempPlayerConf) {
GStorage.setting.put(
SettingBoxKey.enableShowLiveDanmaku,
@@ -1035,7 +1034,7 @@ class _LiveDanmakuState extends State<LiveDanmaku> {
return Obx(
() {
return AnimatedOpacity(
opacity: plPlayerController.enableShowLiveDanmaku.value
opacity: plPlayerController.enableShowDanmaku.value
? plPlayerController.danmakuOpacity.value
: 0,
duration: const Duration(milliseconds: 100),