I'm trying to pass in assets to a component I have, and so I'm using the link to the image from the Assets tab. So I'm using an image from Network and passing in the link to download the asset. When I go to the link on the browser it renders correctly and when I debug on the web browser it works, but when I try on a device, it gives this error:
The following _Exception was thrown resolving an image codec:
Exception: Invalid image data
When the exception was thrown, this was the stack:
#0 _futurize (dart:ui/painting.dart:6980:5
#1 ImageDescriptor.encoded (dart:ui/painting.dart:6786:12)
#2 instantiateImageCodecWithSize (dart:ui/painting.dart:2290:60)
#3 PaintingBinding.instantiateImageCodecWithSize
(package:flutter/src/painting/binding.dart:141:15)
#4 NetworkImage._loadAsync (package:flutter/src/painting/_network_image_io.dart:131:20)
<asynchronous suspension>
#5 MultiFrameImageStreamCompleter._handleCodecReady
(package:flutter/src/painting/image_stream.dart:1005:3)
<asynchronous suspension>
Image provider:
NetworkImage("https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/REST-OF-LINK-TO-IMAGE.svg", scale: 1.0)
Image key:
NetworkImage("https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/REST-OF-LINK-TO-IMAGE.svg",scale: 1.0)
Network Image with Asset link
Troubleshooting
This was suggested as a solution to another post but Idk if Im missing something
I will post screenshot below of more of the error log
Yes
2
9 replies