Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #download #image #url
ADD COMMENT
Topic
Name
3+8 =