fix: fixed null error

This commit is contained in:
Deven Joshi
2021-01-04 14:29:55 +05:30
parent 54efd6f3de
commit 43446713c8
+10 -1
View File
@@ -93,7 +93,16 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
stream: channel.channelStateStream,
builder: (context, state) {
if (!state.hasData) {
return CircularProgressIndicator();
return Text(
'Loading...',
style: TextStyle(
color:
StreamChatTheme.of(context).colorTheme.black,
fontSize: 16,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
);
}
return Text(