Add avatar to mod

This commit is contained in:
shilangyu 2021-02-18 10:24:33 +01:00
parent 11ded1b4b4
commit c8124e4ffc
1 changed files with 16 additions and 3 deletions

View File

@ -484,9 +484,22 @@ class _ModlogEntry {
TableRow build(BuildContext context) => TableRow(
children: [
Center(child: Text(when.fancyShort)),
InkWell(
onTap: () => goToUser.byId(context, mod.instanceHost, mod.id),
child: Text(mod.displayName),
GestureDetector(
onTap: () => goToUser.byId(
context,
mod.instanceHost,
mod.id,
),
child: Row(
children: [
Avatar(
url: mod.avatar,
noBlank: true,
radius: 10,
),
Text(' ${mod.displayName}'),
],
),
),
action,
if (reason == null)