From e0e98299cae1fa51b1b88d4fb54d7e6f7d945643 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Thu, 10 Dec 2020 15:06:32 +0530 Subject: [PATCH] fix: Filter and alignment fix --- lib/src/chat_info_screen.dart | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/src/chat_info_screen.dart b/lib/src/chat_info_screen.dart index 434b0021..e56e812c 100644 --- a/lib/src/chat_info_screen.dart +++ b/lib/src/chat_info_screen.dart @@ -182,7 +182,18 @@ class _ChatInfoScreenState extends State { StreamBuilder>( stream: StreamChat.of(context).client.queryChannels( filter: { - 'members': [StreamChat.of(context).user.id, widget.user.id], + r'$and': [ + { + 'members': { + r'$in': [widget.user.id], + }, + }, + { + 'members': { + r'$in': [StreamChat.of(context).user.id], + }, + } + ], }, ), builder: (context, snapshot) { @@ -386,8 +397,13 @@ class _OptionListTile extends StatelessWidget { fontWeight: FontWeight.w600, color: titleColor), )), Expanded( - child: Center( - child: trailing ?? Container(), + flex: 2, + child: Padding( + padding: const EdgeInsets.only(right: 16.0), + child: Align( + alignment: Alignment.centerRight, + child: trailing ?? Container(), + ), ), ), ],