feat: pm: remove/setTop

This commit is contained in:
bggRGjQaUbCoE
2024-09-29 17:04:39 +08:00
parent f1e64752ae
commit 3a59b8bb60
5 changed files with 182 additions and 41 deletions

View File

@@ -264,41 +264,40 @@ class ReplyItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Semantics(
label: text,
child: Text.rich(
style: TextStyle(
height: 1.75,
fontSize: Theme.of(context)
.textTheme
.bodyMedium!
.fontSize),
TextSpan(
children: [
if (replyItem!.isTop!) ...[
const WidgetSpan(
alignment: PlaceholderAlignment.top,
child: PBadge(
text: 'TOP',
size: 'small',
stack: 'normal',
type: 'line',
fs: 9,
semanticsLabel: '置顶',
),
label: text,
child: Text.rich(
style: TextStyle(
height: 1.75,
fontSize:
Theme.of(context).textTheme.bodyMedium!.fontSize),
TextSpan(
children: [
if (replyItem!.isTop!) ...[
const WidgetSpan(
alignment: PlaceholderAlignment.top,
child: PBadge(
text: 'TOP',
size: 'small',
stack: 'normal',
type: 'line',
fs: 9,
semanticsLabel: '置顶',
),
const TextSpan(text: ' '),
],
buildContent(
context,
replyItem!,
replyReply,
null,
textPainter,
didExceedMaxLines,
),
const TextSpan(text: ' '),
],
),
)),
buildContent(
context,
replyItem!,
replyReply,
null,
textPainter,
didExceedMaxLines,
),
],
),
),
),
if (didExceedMaxLines)
Text(
'查看更多',