remove add member for distinct channels

This commit is contained in:
Salvatore Giordano
2021-01-12 15:24:53 +01:00
parent a6be5766dc
commit 74e9ec648c
+13 -12
View File
@@ -137,20 +137,21 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
), ),
centerTitle: true, centerTitle: true,
actions: [ actions: [
StreamNeumorphicButton( if (!channel.channel.isDistinct)
child: InkWell( StreamNeumorphicButton(
onTap: () { child: InkWell(
_buildAddUserModal(context); onTap: () {
}, _buildAddUserModal(context);
child: Padding( },
padding: const EdgeInsets.all(8.0), child: Padding(
child: StreamSvgIcon.userAdd( padding: const EdgeInsets.all(8.0),
color: StreamChatTheme.of(context) child: StreamSvgIcon.userAdd(
.colorTheme color: StreamChatTheme.of(context)
.accentBlue), .colorTheme
.accentBlue),
),
), ),
), ),
),
], ],
), ),
body: ListView( body: ListView(