mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-06 10:40:09 +08:00
@@ -151,7 +151,6 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
plPlayerController.removeStatusLister(playerListener);
|
||||
_liveRoomController
|
||||
..danmakuController?.clear()
|
||||
..danmakuController?.pause()
|
||||
..cancelLiveTimer()
|
||||
..closeLiveMsg()
|
||||
..isPlaying = plPlayerController.playerStatus.isPlaying;
|
||||
@@ -809,7 +808,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
Obx(
|
||||
() {
|
||||
final enableShowLiveDanmaku =
|
||||
plPlayerController.enableShowDanmaku.value;
|
||||
plPlayerController.enableShowLiveDanmaku.value;
|
||||
return SizedBox(
|
||||
width: 34,
|
||||
height: 34,
|
||||
@@ -817,7 +816,8 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
style: IconButton.styleFrom(padding: .zero),
|
||||
onPressed: () {
|
||||
final newVal = !enableShowLiveDanmaku;
|
||||
plPlayerController.enableShowDanmaku.value = newVal;
|
||||
plPlayerController.enableShowLiveDanmaku.value =
|
||||
newVal;
|
||||
if (!plPlayerController.tempPlayerConf) {
|
||||
GStorage.setting.put(
|
||||
SettingBoxKey.enableShowLiveDanmaku,
|
||||
@@ -1091,7 +1091,7 @@ class _LiveDanmakuState extends State<LiveDanmaku> {
|
||||
final option = DanmakuOptions.get(notFullscreen: widget.notFullscreen);
|
||||
return Obx(
|
||||
() => AnimatedOpacity(
|
||||
opacity: plPlayerController.enableShowDanmaku.value
|
||||
opacity: plPlayerController.enableShowLiveDanmaku.value
|
||||
? plPlayerController.danmakuOpacity.value
|
||||
: 0,
|
||||
duration: const Duration(milliseconds: 100),
|
||||
|
||||
Reference in New Issue
Block a user