fix: richNode img preview

This commit is contained in:
guozhigq
2023-08-20 21:58:38 +08:00
parent 332d5dc38c
commit 01d6308350
2 changed files with 8 additions and 6 deletions

View File

@ -657,11 +657,13 @@ InlineSpan buildContent(
);
if (content.atNameToMid.isEmpty && content.jumpUrl.isEmpty) {
spanChilds.add(TextSpan(
text: str,
recognizer: TapGestureRecognizer()
..onTap = () =>
replyReply(replyItem.root == 0 ? replyItem : fReplyItem)));
if (str != '') {
spanChilds.add(TextSpan(
text: str,
recognizer: TapGestureRecognizer()
..onTap = () =>
replyReply(replyItem.root == 0 ? replyItem : fReplyItem)));
}
}
return str;
},