📜  从 url 下载图片 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:09.333000             🧑  作者: Mango

代码示例2
final ByteData imageData = await NetworkAssetBundle(Uri.parse("YOUR_URL")).load("");
final Uint8List bytes = imageData.buffer.asUint8List();
// display it with the Image.memory widget
Image.memory(bytes);