fix: Filter and alignment fix
This commit is contained in:
@@ -182,7 +182,18 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
|
|||||||
StreamBuilder<List<Channel>>(
|
StreamBuilder<List<Channel>>(
|
||||||
stream: StreamChat.of(context).client.queryChannels(
|
stream: StreamChat.of(context).client.queryChannels(
|
||||||
filter: {
|
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) {
|
builder: (context, snapshot) {
|
||||||
@@ -386,8 +397,13 @@ class _OptionListTile extends StatelessWidget {
|
|||||||
fontWeight: FontWeight.w600, color: titleColor),
|
fontWeight: FontWeight.w600, color: titleColor),
|
||||||
)),
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Center(
|
flex: 2,
|
||||||
child: trailing ?? Container(),
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 16.0),
|
||||||
|
child: Align(
|
||||||
|
alignment: Alignment.centerRight,
|
||||||
|
child: trailing ?? Container(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user