Closed marcoprodata closed 1 year ago
Hii @marcoprodata, can you please explain in detail?
Dear Friend, here's the thing, I have an object on the screen, and a list of items next to it, with each item I click I intend to change the image displayed on the widget, the url of the image is in a store, so when updating I expected the image was updated on the widget, but it doesn't
Can you share the full piece of code so that i can look jnto tue issue
Because the key is not updated, Imagecache not change,
Maybe it will be much better solution for you?
await FastCachedImageConfig.deleteCachedImage(
imageUrl: url,
);
For images with different url using Key param will work. For images with the same url, you will have to delete the cached image first and then call the widget again. but somehow you need to identify whether the images are the same or different
Dear friend, when change the url the widget dont update the image.
Observer( builder: (_) { return SizedBox( height: double.maxFinite, child: RotatedBox( quarterTurns: _rotate, child: FastCachedImage( url: premio.urlCanhoto, fit: BoxFit.fill, fadeInDuration: const Duration(seconds: 1), errorBuilder: (context, exception, stacktrace) { return Text(stacktrace.toString()); }, loadingBuilder: (context, progress) { return Container(); }, ), ), ); }, )
How to change URL and update the widget?
Thanks to advance