fix: add sent danmaku

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-04 22:37:17 +08:00
parent 27e39d4de5
commit cf76cb6f63
2 changed files with 21 additions and 12 deletions

View File

@@ -530,8 +530,12 @@ class _SendDanmakuPanelState extends State<SendDanmakuPanel>
widget.callback(
DanmakuContentItem(
_textController.text,
color: Colors.white,
type: DanmakuItemType.scroll,
color: _color.value,
type: switch (_mode.value) {
5 => DanmakuItemType.top,
4 => DanmakuItemType.bottom,
_ => DanmakuItemType.scroll,
},
selfSend: true,
),
);
@@ -575,6 +579,7 @@ class _SendDanmakuPanelState extends State<SendDanmakuPanel>
),
),
content: SlideColorPicker(
showResetBtn: false,
color: _color.value,
callback: (Color? color) {
if (color != null) {