mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 18:46:53 +08:00
opt show more text
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user