add channel added delete events

This commit is contained in:
Salvatore Giordano
2020-05-18 18:02:10 +02:00
parent 5a0e237a1f
commit d646dcb8c2
3 changed files with 35 additions and 5 deletions
+8 -4
View File
@@ -149,14 +149,18 @@ class StreamChannelState extends State<StreamChannel> {
initialData: widget.channel.state != null,
builder: (context, snapshot) {
if (!snapshot.hasData || !snapshot.data) {
return Scaffold(
body: Center(
return Container(
height: 30,
child: Center(
child: CircularProgressIndicator(),
),
);
} else if (snapshot.hasError) {
return Center(
child: Text(snapshot.error),
return Container(
height: 30,
child: Center(
child: Text(snapshot.error),
),
);
} else {
return widget.child;