forked from LBRYCommunity/lbry-sdk
fix dart bug
fixes `The argument type 'Utf8Decoder' can't be assigned to the parameter type 'StreamTransformer<Uint8List, dynamic>'.` on `flutter run`
This commit is contained in:
parent
5bceb06fc5
commit
910999e7e4
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class LoadRequest {
|
||||||
completer.future.whenComplete(() => timer.stop());
|
completer.future.whenComplete(() => timer.stop());
|
||||||
try {
|
try {
|
||||||
Socket.connect(this.host, this.port).then((socket) {
|
Socket.connect(this.host, this.port).then((socket) {
|
||||||
socket.transform(utf8.decoder).listen((r) {
|
utf8.decoder.bind(socket).listen((r) {
|
||||||
if (r.contains('"jsonrpc": "2.0", "result": ')) {
|
if (r.contains('"jsonrpc": "2.0", "result": ')) {
|
||||||
socket.close();
|
socket.close();
|
||||||
completer.complete();
|
completer.complete();
|
||||||
|
|
|
@ -136,7 +136,7 @@ packages:
|
||||||
name: protobuf
|
name: protobuf
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.13.14"
|
version: "0.13.15"
|
||||||
quiver:
|
quiver:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
Loading…
Reference in a new issue