📜  flutter url image - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:12.579000             🧑  作者: Mango

代码示例3
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);