A channel list shows a complete list of group channels that the current user is a member of. Once a connection with Sendbird server is established, you can display and manage the channel list without complex implementation. All chat services built with Sendbird UIKit begin from the channel list.
All parameters in SBUGroupChannelListScreen constructor are optional.
Widget screen = SBUGroupChannelListScreen(
query: GroupChannelListQuery(), // Query for GroupChannelCollection
onGroupChannelCollectionReady: (collectionNo) {
final collection = SendbirdUIKit.getGroupChannelCollection(collectionNo);
// You can use the collection for this screen.
},
onScrollControllerReady: (scrollController) {
// You can use the scrollController for this screen.
},
onCreateButtonClicked: () {
// Move to SBUGroupChannelCreateScreen.
},
onListItemClicked: (channel) {
// Move to SBUGroupChannelScreen.
},
);