add multiplr_conversation example

This commit is contained in:
Salvatore Giordano
2020-02-24 16:46:05 +01:00
parent d3b6a7e5e5
commit e0e36f50cc
7 changed files with 139 additions and 161 deletions
+2 -3
View File
@@ -8,7 +8,7 @@ class StreamChannel extends StatefulWidget {
StreamChannel({
Key key,
@required this.child,
this.channelClient,
@required this.channelClient,
}) : super(
key: key,
);
@@ -95,8 +95,6 @@ class StreamChannelState extends State<StreamChannel> {
@override
void dispose() {
_queryMessageController.close();
widget.channelClient.dispose();
super.dispose();
}
@@ -109,6 +107,7 @@ class StreamChannelState extends State<StreamChannel> {
}
return FutureBuilder<bool>(
future: widget.channelClient.initialized,
initialData: widget.channelClient.state != null,
builder: (context, snapshot) {
if (!snapshot.hasData) {
return Scaffold(