oxequa / flutter_cache_image

Flutter plugin to load and cache network or firebase storage images with a retry mechanism if the download fails
GNU General Public License v3.0
34 stars 24 forks source link

CacheImage.network with the incorrect image url, not show the placeholder image #4

Closed shawn736 closed 4 years ago

shawn736 commented 4 years ago

Using CacheImage.network with the incorrect image url, void validate() { rootBundle.load(filePath).then((value) { setState(() { validator = true; }); }).catchError((_) { setState(() { validator = false; }); }); } The value of validator always is true, and the placeholder image is not shown.