fix: 动态移除最大行数限制

This commit is contained in:
orz12
2024-02-29 20:55:32 +08:00
parent 47e8747e1c
commit eae17a2f79

View File

@@ -191,13 +191,16 @@ class _ContentState extends State<Content> {
/// fix 默认20px高度 /// fix 默认20px高度
style: const TextStyle(height: 0), style: const TextStyle(height: 0),
richNode(widget.item, context), richNode(widget.item, context),
maxLines: widget.source == 'detail' ? 999 : 3, // maxLines: widget.source == 'detail' ? 999 : 3,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
), ),
if (hasPics) ...[ if (hasPics) ...[
Text.rich(picsNodes()), Text.rich(
picsNodes(),
semanticsLabel: '动态图片',
),
] ]
], ],
), ),