upgrade deps

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-25 12:48:49 +08:00
parent 05cd631439
commit 67c25bd130
6 changed files with 14 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ class _PlDanmakuState extends State<PlDanmaku> {
_controller!.addDanmaku(
DanmakuContentItem(
e.content,
color: playerController.blockTypes.contains(6)
color: playerController.blockColorful
? Colors.white
: DmUtils.decimalToColor(e.color),
type: DmUtils.getPosition(e.mode),

View File

@@ -359,7 +359,9 @@ class LiveRoomController extends GetxController {
plPlayerController.danmakuController?.addDanmaku(
DanmakuContentItem(
extra['content'],
color: DmUtils.decimalToColor(extra['color']),
color: plPlayerController.blockColorful
? Colors.white
: DmUtils.decimalToColor(extra['color']),
type: DmUtils.getPosition(extra['mode']),
selfSend: extra['send_from_me'] ?? false,
),

View File

@@ -1537,6 +1537,7 @@ class HeaderControlState extends State<HeaderControl> {
}
plPlayerController
..blockTypes = blockTypes
..blockColorful = blockTypes.contains(6)
..putDanmakuSettings();
setState(() {});
try {

View File

@@ -322,6 +322,7 @@ class PlPlayerController {
.toRadixString(16);
// 弹幕相关配置
late Set<int> blockTypes = Pref.danmakuBlockType;
late bool blockColorful = blockTypes.contains(6);
late double showArea = Pref.danmakuShowArea;
late RxDouble danmakuOpacity = Pref.danmakuOpacity.obs;
late double danmakuFontScale = Pref.danmakuFontScale;