Skip to content

Instantly share code, notes, and snippets.

@defensive-wizard
Created September 21, 2021 06:44
Show Gist options
  • Save defensive-wizard/31491325f9c1f6928a6ffa2cf3c8bfb5 to your computer and use it in GitHub Desktop.
Save defensive-wizard/31491325f9c1f6928a6ffa2cf3c8bfb5 to your computer and use it in GitHub Desktop.
Example of cached_network_image
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