add factory constructor

This commit is contained in:
Salvatore Giordano
2020-11-24 13:39:36 +01:00
parent 93c324ac56
commit 6b62eadaa4
22 changed files with 424 additions and 166 deletions
+4 -8
View File
@@ -72,10 +72,8 @@ class ChannelBottomSheet extends StatelessWidget {
initialData: channel.isMuted,
builder: (context, snapshot) {
return ListTile(
leading: StreamSvgIcon(
assetName: 'Icon_mute.svg',
height: 22,
width: 22,
leading: StreamSvgIcon.mute(
size: 22,
color: StreamChatTheme.of(context).primaryIconTheme.color,
),
title: Text('Mute ${channel.isGroup ? 'group' : 'user'}'),
@@ -94,10 +92,8 @@ class ChannelBottomSheet extends StatelessWidget {
Divider(),
if (channel.isGroup && !channel.isDistinct)
ListTile(
leading: StreamSvgIcon(
assetName: 'Icon_User_deselect.svg',
height: 22,
width: 22,
leading: StreamSvgIcon.userRemove(
size: 22,
color: Colors.black,
),
title: Text('Leave Group'),