Add avatar to rooms
This commit is contained in:
parent
76411aa827
commit
7c1e18c4e8
|
@ -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]),
|
||||
));
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user