add custom message example

This commit is contained in:
Salvatore Giordano
2020-02-25 14:06:48 +01:00
parent 3c4edf1b18
commit f2646e407d
3 changed files with 71 additions and 7 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ class StreamChannelState extends State<StreamChannel> {
future: widget.channelClient.initialized,
initialData: widget.channelClient.state != null,
builder: (context, snapshot) {
if (!snapshot.hasData) {
if (!snapshot.hasData || !snapshot.data) {
return Scaffold(
body: Center(
child: CircularProgressIndicator(),