I'm trying to display an image in a list, but it times out after the image loads. I tried other domain pictures without this problem. It only happens when loading multiple images. Can someone help me to figure out what's going on?
here is the error:
The following SocketException was thrown resolving an image codec:
Operation timed out (OS Error: Operation timed out, errno = 60), address = shop.edathemepark.com.tw,
port = 59820
When the exception was thrown, this was the stack:
#0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:719:35)
#1 _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1877:26)
#2 RawSocket.startConnect (dart:io-patch/socket_patch.dart:27:23)
#3 RawSecureSocket.startConnect (dart:io/secure_socket.dart:297:22)
#4 SecureSocket.startConnect (dart:io/secure_socket.dart:77:28)
#5 _ConnectionTarget.connect (dart:_http/http_impl.dart:2482:26)
#6 _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2924:12)
#7 _HttpClient._getConnection (dart:_http/http_impl.dart:2929:12)
#8 _HttpClient._openUrl (dart:_http/http_impl.dart:2784:12)
#9 _HttpClient.getUrl (dart:_http/http_impl.dart:2627:48)
#10 NetworkImage._loadAsync (package:flutter/src/painting/_network_image_io.dart:124:59)
#11 NetworkImage.loadImage (package:flutter/src/painting/_network_image_io.dart:84:14)
here is my sample code:
Column(
children: <Widget>[
//it shows good
/*
Image.network('https://picsum.photos/250?image=9'),
Image.network('https://picsum.photos/250?image=8'),
Image.network('https://picsum.photos/250?image=7'),
Image.network('https://picsum.photos/250?image=6'),
Image.network('https://picsum.photos/250?image=5'),*/
//high probability error on iphone, 100% error on chrome
/*
Image.network("https://shop.edathemepark.com.tw/Upload/EasyGo2/Notify/F8306493-E81D-44E4-80AD-5B6D77BA6096.jpg"),
Image.network("https://shop.edathemepark.com.tw/Upload/EasyGo2/Notify/E41B7C25-4166-4716-95C2-0DC0ECE740A8.jpg"),
Image.network("https://shop.edathemepark.com.tw/Upload/EasyGo2/Notify/E0A1F5AC-2156-4FD0-B83C-07C882DCE5F4.jpg"),
*/
//low probability error on iphone, 100% error on chrome
/*
Image.network("https://shop.edamall.com.tw/Upload/EasyGo2/Notify/F8306493-E81D-44E4-80AD-5B6D77BA6096.jpg"),
Image.network("https://shop.edamall.com.tw/Upload/EasyGo2/Notify/E41B7C25-4166-4716-95C2-0DC0ECE740A8.jpg"),
Image.network("https://shop.edamall.com.tw/Upload/EasyGo2/Notify/E0A1F5AC-2156-4FD0-B83C-07C882DCE5F4.jpg"),
*/
],
),