Add avatar to rooms

This commit is contained in:
Brandon Presley 2023-12-30 11:47:27 +13:00
parent 76411aa827
commit 7c1e18c4e8

View File

@ -95,6 +95,13 @@ class _RoomsPageState extends State<RoomsPage> {
itemBuilder: (context, index) => ListTile(
title: Text(provider.client.rooms[index]
.getLocalizedDisplayname()),
leading: CircleAvatar(
foregroundImage: NetworkImage(provider
.client.rooms[index].avatar
?.getThumbnail(provider.client,
width: 50, height: 50)
.toString() ??
"")),
onTap: () => viewRoom(provider.client.rooms[index]),
));
},