Improved design
This commit is contained in:
parent
6ab3874bca
commit
2b312ff74d
8 changed files with 47 additions and 11 deletions
|
|
@ -214,12 +214,18 @@ class _ChatDetailsState extends State<ChatDetails> {
|
|||
: Container(),
|
||||
],
|
||||
)
|
||||
: i < members.length + 1
|
||||
: i < members.length + 1 && false
|
||||
? ParticipantListItem(members[i - 1])
|
||||
: ListTile(
|
||||
title: Text(
|
||||
"Load more ${actualMembersCount - members.length} participants"),
|
||||
leading: Icon(Icons.refresh),
|
||||
leading: CircleAvatar(
|
||||
backgroundColor: Colors.white,
|
||||
child: Icon(
|
||||
Icons.refresh,
|
||||
color: Colors.grey,
|
||||
),
|
||||
),
|
||||
onTap: () => requestMoreMembersAction(context),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -68,7 +68,10 @@ class InvitationSelection extends StatelessWidget {
|
|||
return ListView.builder(
|
||||
itemCount: contacts.length,
|
||||
itemBuilder: (BuildContext context, int i) => ListTile(
|
||||
leading: Avatar(contacts[i].avatarUrl),
|
||||
leading: Avatar(
|
||||
contacts[i].avatarUrl,
|
||||
contacts[i].calcDisplayname(),
|
||||
),
|
||||
title: Text(contacts[i].calcDisplayname()),
|
||||
subtitle: Text(contacts[i].id),
|
||||
onTap: () => inviteAction(context, contacts[i].id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue