Bam*_*oUA 8 type-conversion dart flutter
load新的 Flutter 3.3 弃用了class 的方法ImageProvider,现在我的一些代码变得无法工作,因为有一个type 的load参数,但有一个.bytesUit8ListloadBufferbufferImmutableBuffer
我曾经使用包Uint8List解码图像image
final bytes = img.decodeImage(bytes); // bytes is instance of Uit8List
完整的代码可以从文章《Remove a color from an image in Flutter》中阅读,从第 4. 节开始解码。
现在我需要转换ImmutableBuffer为Uint8List. 有人知道该怎么做吗?
| 归档时间: | 
 | 
| 查看次数: | 1112 次 | 
| 最近记录: |