mod: save dm config

Closes #673

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-13 11:17:51 +08:00
parent a7bbfc983e
commit 634bae915a
2 changed files with 27 additions and 3 deletions

View File

@@ -952,6 +952,7 @@ class VideoDetailController extends GetxController
}
}
({int mode, int fontsize, Color color})? dmConfig;
String? savedDanmaku;
/// 发送弹幕
@@ -975,6 +976,8 @@ class VideoDetailController extends GetxController
plPlayerController.danmakuController?.addDanmaku(danmakuModel);
},
darkVideoPage: plPlayerController.darkVideoPage,
dmConfig: dmConfig,
onSaveDmConfig: (dmConfig) => this.dmConfig = dmConfig,
);
},
transitionDuration: const Duration(milliseconds: 500),