fix: fix channel null error

This commit is contained in:
Deven Joshi
2021-01-04 14:29:18 +05:30
parent 94555a7565
commit 54efd6f3de
+4
View File
@@ -92,6 +92,10 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
StreamBuilder<ChannelState>( StreamBuilder<ChannelState>(
stream: channel.channelStateStream, stream: channel.channelStateStream,
builder: (context, state) { builder: (context, state) {
if (!state.hasData) {
return CircularProgressIndicator();
}
return Text( return Text(
_getChannelName( _getChannelName(
2 * MediaQuery.of(context).size.width / 3, 2 * MediaQuery.of(context).size.width / 3,