opt: create dynamic panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-30 11:59:12 +08:00
parent bef7a28229
commit 991ae8518a
5 changed files with 437 additions and 306 deletions

View File

@@ -283,7 +283,7 @@ class _ReplyPageState extends State<ReplyPage>
autofocus: false,
readOnly: snapshot.data ?? false,
onChanged: (value) {
bool isEmpty = value.replaceAll('\n', '').isEmpty;
bool isEmpty = value.trim().isEmpty;
if (!isEmpty && !_enablePublish) {
_enablePublish = true;
_publishStream.add(true);