mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 16:48:43 +00:00
@@ -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),
|
||||
|
||||
@@ -75,7 +75,7 @@ class BottomControl extends StatelessWidget {
|
||||
Obx(
|
||||
() {
|
||||
final enableShowLiveDanmaku =
|
||||
plPlayerController.enableShowLiveDanmaku.value;
|
||||
plPlayerController.enableShowDanmaku.value;
|
||||
return ComBtn(
|
||||
tooltip: "${enableShowLiveDanmaku ? '关闭' : '开启'}弹幕",
|
||||
icon: enableShowLiveDanmaku
|
||||
@@ -91,7 +91,7 @@ class BottomControl extends StatelessWidget {
|
||||
),
|
||||
onTap: () {
|
||||
final newVal = !enableShowLiveDanmaku;
|
||||
plPlayerController.enableShowLiveDanmaku.value = newVal;
|
||||
plPlayerController.enableShowDanmaku.value = newVal;
|
||||
if (!plPlayerController.tempPlayerConf) {
|
||||
GStorage.setting.put(
|
||||
SettingBoxKey.enableShowLiveDanmaku,
|
||||
|
||||
Reference in New Issue
Block a user