Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created April 28, 2021 18:24
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 sendbird-community/5b9d5e3045cbebb752a5220e9be66290 to your computer and use it in GitHub Desktop.
Save sendbird-community/5b9d5e3045cbebb752a5220e9be66290 to your computer and use it in GitHub Desktop.
Flutter | Initial channel list view
import 'package:flutter/material.dart';
import 'package:sendbird_sdk/sendbird_sdk.dart';
class ChannelListView extends StatefulWidget {
@override
_ChannelListViewState createState() => _ChannelListViewState();
}
class _ChannelListViewState extends State<ChannelListView>
with ChannelEventHandler {
@override
void initState() {
super.initState();
SendbirdSdk().addChannelEventHandler('channel_list_view', this);
}
@override
void dispose() {
SendbirdSdk().removeChannelEventHandler("channel_list_view");
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment