Created
September 21, 2021 06:44
-
-
Save defensive-wizard/31491325f9c1f6928a6ffa2cf3c8bfb5 to your computer and use it in GitHub Desktop.
Example of cached_network_image
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
import 'package:cached_network_image/cached_network_image.dart'; | |
CachedNetworkImage( | |
imageUrl: "http://via.placeholder.com/350x150", | |
placeholder: (context, url) => CircularProgressIndicator(), | |
errorWidget: (context, url, error) => Icon(Icons.error), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment