opt: reply2reply showing

This commit is contained in:
bggRGjQaUbCoE
2024-08-27 09:40:53 +08:00
parent e01026ad93
commit 7ec2fbb67d
2 changed files with 29 additions and 12 deletions

View File

@@ -252,9 +252,9 @@ class ReplyItem extends StatelessWidget {
overflow: TextOverflow.ellipsis,
TextSpan(
children: [
if (replyItem!.isTop!)
if (replyItem!.isTop!) ...[
const WidgetSpan(
alignment: PlaceholderAlignment.top,
alignment: PlaceholderAlignment.middle,
child: PBadge(
text: 'TOP',
size: 'small',
@@ -264,6 +264,8 @@ class ReplyItem extends StatelessWidget {
semanticsLabel: '置顶',
),
),
const TextSpan(text: ' '),
],
buildContent(context, replyItem!, replyReply, null),
],
),
@@ -463,21 +465,28 @@ class ReplyItemRow extends StatelessWidget {
if (replies![i].isUp!) ...[
const TextSpan(text: ' '),
const WidgetSpan(
alignment: PlaceholderAlignment.top,
alignment: PlaceholderAlignment.middle,
child: PBadge(
text: 'UP',
size: 'small',
stack: 'normal',
fs: 9,
),
)
),
const TextSpan(text: ' '),
],
TextSpan(
text: replies![i].root == replies![i].parent
? ': '
: ' '),
: replies![i].isUp!
? ''
: ' '),
buildContent(
context, replies![i], replyReply, replyItem),
context,
replies![i],
replyReply,
replyItem,
),
],
),
)),