微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Flutter Image.memory() 错误图像数据无效

如何解决Flutter Image.memory() 错误图像数据无效

我正在尝试显示 image.memory,但出现错误,如下图所示。

enter image description here

图像的字节如下。

enter image description here

更新-1-

下面你看我的代码

enter image description here

enter image description here

更新-2- snpashot.data 是否为空的结果

enter image description here

更新-3- 我为直接获取字节所做的更改。但也会出错

enter image description here

enter image description here

我无法解释,也没有找到针对此错误的任何解决方案。

非常感谢!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。