flutterdartcachingimage-caching

Flutter & Image Cache : How to build your own cached network image flutter


I want to implement image cache but I don't want to use the third-party library like cached_network_image. How do I build your own cached network image flutter?

Please take the network image below and use it as an example?

Image Link: https://user-images.githubusercontent.com/54469196/100622834-b026a180-3364-11eb-9c35-0582686397d7.png


Solution

  • To implement cached image without using cached_network_image you have to use the plugin which is used by cached_network_image to work i.e flutter_cache_manager . You can see how the plugin is used in cached_network_image by seeing the code from its GitHub repository and accordingly implement in your app.

    Hope this will help you! If you still face any problem please inform in comments.