opt: 评论信息布局

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

View File

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