mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
opt: reply item
This commit is contained in:
@@ -295,13 +295,6 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
textPainter,
|
textPainter,
|
||||||
didExceedMaxLines,
|
didExceedMaxLines,
|
||||||
),
|
),
|
||||||
if (didExceedMaxLines)
|
|
||||||
TextSpan(
|
|
||||||
text: '\n查看更多',
|
|
||||||
style: TextStyle(
|
|
||||||
color: Theme.of(context).colorScheme.primary,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -940,6 +933,18 @@ InlineSpan buildContent(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (didExceedMaxLines == true) {
|
||||||
|
spanChildren.add(
|
||||||
|
TextSpan(
|
||||||
|
text: '\n查看更多',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Theme.of(context).colorScheme.primary,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// 图片渲染
|
// 图片渲染
|
||||||
if (content.pictures.isNotEmpty) {
|
if (content.pictures.isNotEmpty) {
|
||||||
spanChildren.add(const TextSpan(text: '\n'));
|
spanChildren.add(const TextSpan(text: '\n'));
|
||||||
|
|||||||
Reference in New Issue
Block a user