Created
April 28, 2021 18:24
-
-
Save sendbird-community/5b9d5e3045cbebb752a5220e9be66290 to your computer and use it in GitHub Desktop.
Flutter | Initial channel list view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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