From a864bea3f4e1411554df04b53435dc89428d4ae8 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Thu, 7 Sep 2023 20:31:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=93=E6=A0=8F=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/dynamics/widgets/rich_node_panel.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pages/dynamics/widgets/rich_node_panel.dart b/lib/pages/dynamics/widgets/rich_node_panel.dart index 66d1a9a5..5d22c597 100644 --- a/lib/pages/dynamics/widgets/rich_node_panel.dart +++ b/lib/pages/dynamics/widgets/rich_node_panel.dart @@ -25,7 +25,9 @@ InlineSpan richNode(item, context) { return spacer; } else { for (var i in richTextNodes) { - if (i.type == 'RICH_TEXT_NODE_TYPE_TEXT') { + /// fix 渲染专栏时内容会重复 + if (item.modules.moduleDynamic.major.opus.title == null && + i.type == 'RICH_TEXT_NODE_TYPE_TEXT') { spanChilds.add( TextSpan(text: i.origText, style: const TextStyle(height: 1.65))); }