🐛 Fix post item missing avatar in replies

This commit is contained in:
LittleSheep 2024-06-27 00:33:49 +08:00
parent d91680ada7
commit 3d8315d09b

View File

@ -58,10 +58,15 @@ class _PostItemState extends State<PostItem> {
Widget buildHeader() { Widget buildHeader() {
return Row( return Row(
children: [ children: [
if (widget.isCompact)
AccountAvatar(
content: item.author.avatar.toString(),
radius: 10,
).paddingOnly(left: 2),
Text( Text(
item.author.nick, item.author.nick,
style: const TextStyle(fontWeight: FontWeight.bold), style: const TextStyle(fontWeight: FontWeight.bold),
).paddingOnly(left: 12), ).paddingOnly(left: 6),
buildDate().paddingOnly(left: 4), buildDate().paddingOnly(left: 4),
], ],
); );