refactor: Avatar widget
This commit is contained in:
parent
29c0f12609
commit
53967eb1f0
20 changed files with 69 additions and 47 deletions
|
|
@ -21,7 +21,10 @@ class ChatAppBarTitle extends StatelessWidget {
|
|||
return Text(controller.selectedEvents.length.toString());
|
||||
}
|
||||
return ListTile(
|
||||
leading: Avatar(controller.room.avatar, controller.room.displayname),
|
||||
leading: Avatar(
|
||||
mxContent: controller.room.avatar,
|
||||
name: controller.room.displayname,
|
||||
),
|
||||
contentPadding: EdgeInsets.zero,
|
||||
onTap: controller.room.isDirectChat
|
||||
? () => showModalBottomSheet(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue