Add profile images to chats
This commit is contained in:
parent
5fbc8bee42
commit
1376580e7e
|
@ -50,10 +50,20 @@ class _RoomPageState extends State<RoomPage> {
|
|||
itemCount: timeline?.events.length,
|
||||
reverse: true,
|
||||
itemBuilder: (context, index) => ListTile(
|
||||
title: Text(timeline!.events[index].senderFromMemoryOrFallback
|
||||
.displayName ??
|
||||
""),
|
||||
title: Text(timeline!
|
||||
.events[index].senderFromMemoryOrFallback.displayName
|
||||
.toString()),
|
||||
subtitle: Text(timeline!.events[index].body),
|
||||
leading: timeline?.events[index].senderFromMemoryOrFallback
|
||||
.avatarUrl !=
|
||||
null
|
||||
? CircleAvatar(
|
||||
foregroundImage: NetworkImage(timeline!.events[index]
|
||||
.senderFromMemoryOrFallback.avatarUrl!
|
||||
.getThumbnail(widget.room.client,
|
||||
width: 50, height: 50)
|
||||
.toString()))
|
||||
: null,
|
||||
)),
|
||||
),
|
||||
TextFormField(
|
||||
|
|
Loading…
Reference in New Issue
Block a user