1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can remove members from conversation

This commit is contained in:
2021-03-13 10:48:59 +01:00
parent ba60fa9e37
commit 5d0ead5889
3 changed files with 71 additions and 29 deletions

View File

@ -14,9 +14,15 @@ class SimpleUserTile extends StatelessWidget {
final User user;
final OnUserTap onTap;
final Widget trailing;
final String subtitle;
const SimpleUserTile({Key key, this.user, this.onTap, this.trailing})
: assert(user != null),
const SimpleUserTile({
Key key,
this.user,
this.onTap,
this.trailing,
this.subtitle,
}) : assert(user != null),
super(key: key);
@override
@ -27,6 +33,7 @@ class SimpleUserTile extends StatelessWidget {
user: user,
),
title: Text(user.fullName),
subtitle: subtitle == null ? null : Text(subtitle),
trailing: trailing,
);
}