download image from url flutter code example
Example 1: flutter url image
Image.network('https://picsum.photos/250?image=9')
Example 2: flutter download image from url
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);