Created
January 10, 2019 12:14
-
-
Save jesusrp98/e7e69837eca0506471654956db88d02e to your computer and use it in GitHub Desktop.
Auxiliary widget to display a cached image. It has its own 'error' widget.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return CachedNetworkImage( | |
imageUrl: url, | |
errorWidget: Icon( | |
Icons.cancel, | |
size: 32.0, | |
color: Theme.of(context).textTheme.caption.color, | |
), | |
fadeInDuration: Duration(milliseconds: 100), | |
fit: BoxFit.cover, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment