diff --git a/lib/pages/dynamics/widgets/content_panel.dart b/lib/pages/dynamics/widgets/content_panel.dart index d3716e1b..2f1a3b44 100644 --- a/lib/pages/dynamics/widgets/content_panel.dart +++ b/lib/pages/dynamics/widgets/content_panel.dart @@ -58,8 +58,8 @@ Widget content(context, item, source, callback) { fontSize: source == 'detail' ? 16 : 15, ), richNodes, - maxLines: source == 'detail' ? 999 : 6, - overflow: TextOverflow.ellipsis, + maxLines: source == 'detail' ? null : 6, + overflow: source == 'detail' ? null : TextOverflow.ellipsis, ), ), ), diff --git a/lib/pages/dynamics/widgets/content_panel_grpc.dart b/lib/pages/dynamics/widgets/content_panel_grpc.dart index a9c06f8c..16c8b2a3 100644 --- a/lib/pages/dynamics/widgets/content_panel_grpc.dart +++ b/lib/pages/dynamics/widgets/content_panel_grpc.dart @@ -65,8 +65,8 @@ class ContentGrpc extends StatelessWidget { /// fix 默认20px高度 style: const TextStyle(height: 0), richNodes, - maxLines: source == 'detail' ? 999 : 6, - overflow: TextOverflow.ellipsis, + maxLines: source == 'detail' ? null : 6, + overflow: source == 'detail' ? null : TextOverflow.ellipsis, ), ), ), diff --git a/lib/pages/dynamics/widgets/forward_panel.dart b/lib/pages/dynamics/widgets/forward_panel.dart index ee48bf1e..58c2c48c 100644 --- a/lib/pages/dynamics/widgets/forward_panel.dart +++ b/lib/pages/dynamics/widgets/forward_panel.dart @@ -97,8 +97,10 @@ Widget forWard(item, context, source, callback, {floor = 1}) { Text.rich( richNodes, // 被转发状态(floor=2) 隐藏 - maxLines: source == 'detail' && floor != 2 ? 999 : 4, - overflow: TextOverflow.ellipsis, + maxLines: source == 'detail' && floor != 2 ? null : 4, + overflow: source == 'detail' && floor != 2 + ? null + : TextOverflow.ellipsis, ), if (hasPics) ...[ Text.rich( @@ -214,8 +216,10 @@ Widget forWard(item, context, source, callback, {floor = 1}) { Text.rich( richNodes, // 被转发状态(floor=2) 隐藏 - maxLines: source == 'detail' && floor != 2 ? 999 : 4, - overflow: TextOverflow.ellipsis, + maxLines: source == 'detail' && floor != 2 ? null : 4, + overflow: source == 'detail' && floor != 2 + ? null + : TextOverflow.ellipsis, ), ], )