I am trying to load an image with FadeInImage, but when the image path does not exist, an AssetImage is loaded. However, the NetworkImage throws me error: HTTP request failed, statusCode: 404
I tried to do it with AdvancedNetworkImage and it works fine, but when the image is replaced by another, AdvancedNetworkImage keeps loading the old image, I guess it's the cache. I have disabled the options associated with cache, but it continues loading the previous image.
FadeInImage photoItem = FadeInImage(
image: AdvancedNetworkImage('$urlapi/api/items/$itemID/images',
fallbackAssetImage: 'assets/images/add_photo.png',
disableMemoryCache: true,
cacheRule: CacheRule(maxAge: Duration(seconds: 1)),
timeoutDuration: Duration(seconds: 1),
useDiskCache: false, ),
placeholder: AssetImage('assets/images/add_photo.png'),
fadeInDuration: Duration(milliseconds: 150),
fit: BoxFit.contain,
);
Any ideas how this could be handled?