opt show more text

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-26 10:15:08 +08:00
parent 0b95476d8f
commit 2eb86658b7
11 changed files with 5464 additions and 385 deletions

View File

@@ -495,10 +495,11 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
void onChanged(String value) {
bool isEmpty = value.trim().isEmpty;
if (!isEmpty && !enablePublish.value) {
enablePublish.value = true;
} else if (isEmpty && enablePublish.value) {
if (isEmpty) {
enablePublish.value = false;
mentions?.clear();
} else {
enablePublish.value = true;
}
widget.onSave?.call((text: value, mentions: mentions));
}