I have a question because I have an unresolved problem.
I’m trying to get an image url from another web page’s html source (e.g. img src) and use it as a thumbnail on my web page.
Image.network("https://cdn2.ppomppu.co.kr/zboard/data3/2024/0612/20240612153148_6FinzEg08D.jpg")
But when I add and run it, no image is displayed and it says [object event].
object event
I tried the following:
- Specify rendering as HTML when building.
- Add options to index.html
<script type="text/javascript">
window.flutterWebRenderer = "html";
</script>
Even if you set and run the above two options, the result is the same.
The message displayed on the console is as follows.
══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following Event$ object was thrown resolving an image frame:
[object Event]
When the exception was thrown, this was the stack
Image provider:
NetworkImage("https://cdn2.ppomppu.co.kr/zboard/data3/2024/0612/20240612153148_6FinzEg08D.jpg",
scale: 1.0)
Image key:
NetworkImage("https://cdn2.ppomppu.co.kr/zboard/data3/2024/0612/20240612153148_6FinzEg08D.jpg",
scale: 1.0)
════════════════════════════════════════════════════════════════════════════════════════════════════
However, in the ‘flutter web’ project, the problem occurs as above,
It displays normally in ‘flutter app’.
Is there any solution?
박용석 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.