fix: fix channel null error
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user