From 328bc4d1bcf02b56c63706f7e19991cc424849db Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Thu, 10 Dec 2020 14:42:58 +0530 Subject: [PATCH] fix: Removed block button --- lib/src/chat_info_screen.dart | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/lib/src/chat_info_screen.dart b/lib/src/chat_info_screen.dart index 3881e4a3..434b0021 100644 --- a/lib/src/chat_info_screen.dart +++ b/lib/src/chat_info_screen.dart @@ -137,18 +137,24 @@ class _ChatInfoScreenState extends State { onTap: () {}, ); }), - _OptionListTile( - title: 'Block User', - leading: StreamSvgIcon.Icon_user_delete( - size: 24.0, - color: Colors.black.withOpacity(0.5), - ), - trailing: CupertinoSwitch( - value: true, - onChanged: (val) {}, - ), - onTap: () {}, - ), + // _OptionListTile( + // title: 'Block User', + // leading: StreamSvgIcon.Icon_user_delete( + // size: 24.0, + // color: Colors.black.withOpacity(0.5), + // ), + // trailing: CupertinoSwitch( + // value: widget.user.banned, + // onChanged: (val) { + // if (widget.user.banned) { + // channel.channel.shadowBan(widget.user.id, {}); + // } else { + // channel.channel.unbanUser(widget.user.id); + // } + // }, + // ), + // onTap: () {}, + // ), _OptionListTile( title: '615 Photos & Videos', leading: StreamSvgIcon.pictures(