🐛 Fix post item missing avatar in replies
This commit is contained in:
@@ -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),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user