Skip to content

Instantly share code, notes, and snippets.

@pinkeshdarji
Created May 24, 2021 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinkeshdarji/e59e51eb842c5d21da88b67e04d22ca2 to your computer and use it in GitHub Desktop.
Save pinkeshdarji/e59e51eb842c5d21da88b67e04d22ca2 to your computer and use it in GitHub Desktop.
Widget build(BuildContext context) {
return Scaffold(
//backgroundColor: Colors.white,
body: ChannelsBloc(
child: ChannelListView(
onChannelTap: onItemTap != null
? (channel, _) {
onItemTap(channel);
}
: null,
filter: {
'members': {
'\$in': [StreamChat.of(context).user.id],
}
},
sort: [SortOption('last_message_at')],
pagination: PaginationParams(
limit: 20,
),
channelWidget: ChannelPage(),
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment