Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-06 14:29:51 +08:00
parent 9f33488248
commit b723529d7f
6 changed files with 38 additions and 30 deletions

View File

@@ -256,5 +256,5 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
enablePublish.value = value.trim().isNotEmpty;
}
void onSave() {}
void onSave();
}

View File

@@ -228,22 +228,23 @@ abstract class CommonRichTextPubPageState<T extends CommonRichTextPubPage>
"biz_id": "",
});
case RichTextType.vote:
list.add({
"raw_text": e.rawText,
"type": 4,
"biz_id": e.id,
});
list.add({
"raw_text": ' ',
"type": 1,
"biz_id": "",
});
list
..add({
"raw_text": e.rawText,
"type": 4,
"biz_id": e.id,
})
..add({
"raw_text": ' ',
"type": 1,
"biz_id": "",
});
}
}
return list;
}
double _mentionOffset = 0;
late double _mentionOffset = 0;
Future<void> onMention([bool fromClick = false]) async {
controller.keepChatPanel();
final res = await DynMentionPanel.onDynMention(