opt: 评论信息布局

This commit is contained in:
guozhigq
2024-10-09 22:41:12 +08:00
parent bb50e501aa
commit 4d49d6cfd3

View File

@ -200,10 +200,11 @@ class ReplyItem extends StatelessWidget {
), ),
], ],
), ),
Row( RichText(
children: <Widget>[ text: TextSpan(
Text( children: [
Utils.dateFormat(replyItem!.ctime), TextSpan(
text: Utils.dateFormat(replyItem!.ctime),
style: TextStyle( style: TextStyle(
fontSize: textTheme.labelSmall!.fontSize, fontSize: textTheme.labelSmall!.fontSize,
color: colorScheme.outline, color: colorScheme.outline,
@ -211,14 +212,24 @@ class ReplyItem extends StatelessWidget {
), ),
if (replyItem!.replyControl != null && if (replyItem!.replyControl != null &&
replyItem!.replyControl!.location != '') replyItem!.replyControl!.location != '')
Text( TextSpan(
'${replyItem!.replyControl!.location!}', text: '${replyItem!.replyControl!.location!}',
style: TextStyle( style: TextStyle(
fontSize: textTheme.labelSmall!.fontSize, fontSize: textTheme.labelSmall!.fontSize,
color: colorScheme.outline), color: colorScheme.outline,
),
),
if (replyItem!.invisible!)
TextSpan(
text: ' • 隐藏的评论',
style: TextStyle(
color: colorScheme.outline,
fontSize: textTheme.labelSmall!.fontSize,
),
), ),
], ],
) ),
),
], ],
), ),
], ],