From 54efd6f3de3de6ae9c88853d234195170a41db0a Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 4 Jan 2021 14:29:18 +0530 Subject: [PATCH] fix: fix channel null error --- example/lib/group_info_screen.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/lib/group_info_screen.dart b/example/lib/group_info_screen.dart index 056f17c6..1cba6fa7 100644 --- a/example/lib/group_info_screen.dart +++ b/example/lib/group_info_screen.dart @@ -92,6 +92,10 @@ class _GroupInfoScreenState extends State { StreamBuilder( stream: channel.channelStateStream, builder: (context, state) { + if (!state.hasData) { + return CircularProgressIndicator(); + } + return Text( _getChannelName( 2 * MediaQuery.of(context).size.width / 3,