del at user

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-24 23:23:21 +08:00
parent 7be3774675
commit 4b067c5ed2
10 changed files with 40 additions and 53 deletions

View File

@@ -370,15 +370,7 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
inputFormatters: [
LengthLimitingTextInputFormatter(100),
],
onChanged: (value) {
bool isEmpty = value.trim().isEmpty;
if (!isEmpty && !enablePublish.value) {
enablePublish.value = true;
} else if (isEmpty && enablePublish.value) {
enablePublish.value = false;
}
widget.onSave?.call((text: value, mentions: null));
},
onChanged: onChanged,
textInputAction: TextInputAction.send,
onSubmitted: (value) {
if (value.trim().isNotEmpty) {