update example using new client

This commit is contained in:
Salvatore Giordano
2020-02-26 14:02:50 +01:00
parent aee5067f9c
commit 71c76dbade
16 changed files with 179 additions and 143 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ class _MessageInputState extends State<MessageInput> {
},
controller: _textController,
onChanged: (s) {
StreamChannel.of(context).channelClient.keyStroke();
StreamChannel.of(context).channel.keyStroke();
setState(() {
_messageIsPresent = s.trim().isNotEmpty;
});
@@ -121,7 +121,7 @@ class _MessageInputState extends State<MessageInput> {
FocusScope.of(context).unfocus();
StreamChannel.of(context)
.channelClient
.channel
.sendMessage(
Message(
parentId: widget.parent?.id,