From 01d63083500aacbe9038d4c2415429f8b129042a Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 20 Aug 2023 21:58:38 +0800 Subject: [PATCH] fix: richNode img preview --- lib/pages/video/detail/reply/widgets/reply_item.dart | 12 +++++++----- lib/pages/video/detail/replyReply/view.dart | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/pages/video/detail/reply/widgets/reply_item.dart b/lib/pages/video/detail/reply/widgets/reply_item.dart index 7aab2a134..abebf5cbc 100644 --- a/lib/pages/video/detail/reply/widgets/reply_item.dart +++ b/lib/pages/video/detail/reply/widgets/reply_item.dart @@ -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; }, diff --git a/lib/pages/video/detail/replyReply/view.dart b/lib/pages/video/detail/replyReply/view.dart index b457063a1..0d86cb5b4 100644 --- a/lib/pages/video/detail/replyReply/view.dart +++ b/lib/pages/video/detail/replyReply/view.dart @@ -69,7 +69,7 @@ class _VideoReplyReplyPanelState extends State { @override void dispose() { - scrollController.dispose(); + // scrollController.dispose(); super.dispose(); }