fix: fixed null error
This commit is contained in:
@@ -93,7 +93,16 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
stream: channel.channelStateStream,
|
stream: channel.channelStateStream,
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
if (!state.hasData) {
|
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(
|
return Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user