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

@@ -245,14 +245,7 @@ class _WhisperDetailPageState
controller: editController,
minLines: 1,
maxLines: 4,
onChanged: (value) {
bool isNotEmpty = value.trim().isNotEmpty;
if (isNotEmpty && !enablePublish.value) {
enablePublish.value = true;
} else if (!isNotEmpty && enablePublish.value) {
enablePublish.value = false;
}
},
onChanged: onChanged,
textInputAction: TextInputAction.newline,
decoration: InputDecoration(
filled: true,