the problem
所以我得到图像中显示的错误,我的问题是:在这种情况下,我应如何使用stream.cast?
最佳答案
尝试更改此:
var stream = new http.ByteStream(DelegatingStream.typed(_image.openRead()));
对此:
var stream = new http.ByteStream(_image.openRead());
stream.cast();
关于flutter - 我应该如何使用stream.cast而不是typed?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61667253/