Flutter_cached_network_image: How to clear cached local images

Created on 29 Oct 2019  路  2Comments  路  Source: Baseflow/flutter_cached_network_image

Hi, How to clear cached local images?

Most helpful comment

If you add flutter_cache_manager to your dependencies in pubspec you can call DefaultCacheManager().emptyCache() to clear all images. For specific files you can call DefaultCacheManager().removeFile(url).

All 2 comments

If you add flutter_cache_manager to your dependencies in pubspec you can call DefaultCacheManager().emptyCache() to clear all images. For specific files you can call DefaultCacheManager().removeFile(url).

this option not work anymore in ^2.2.0+1.
any other solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gunhansancar picture gunhansancar  路  3Comments

srburton picture srburton  路  6Comments

sososdk picture sososdk  路  5Comments

digitaldangal picture digitaldangal  路  5Comments

nashfive picture nashfive  路  5Comments