1
votes

In my code I'm trying to use Image.network() to access this link: https://raw.githubusercontent.com/KZGlobalTeam/map-images/public/thumbnails/kz_ladderall.jpg and I've figured out I'm having this exception because the website refused my emulator's connection while other links such as https://picsum.photos/250?image=9 works fine.

I have tried to use proxy from v2rayN but still does't work. How should I fix it?

3

3 Answers

0
votes

First try

  Fluttter clean 

And then if this did not work then. Use This way :

 Image(image:NetworkImage(url))

I hope this would solve your problem

0
votes

It's working for me, using Image.network, maybe you are doing something wrong. Please check once again.

 return SizedBox(
      height: 100.0,
      width: 100.0,
      child: Image.network('https://raw.githubusercontent.com/KZGlobalTeam/map-images/public/thumbnails/kz_ladderall.jpg'),
    );

enter image description here

0
votes

I ended up acessing the link via a proxy website, it was just a firewall problem within China