Last updated:
0 purchases
network image safe provider
NetworkImageSafeProvider #
A NetworkImageProvider with placeholder.
Usage #
Use NetworkImageSafeProvider instead of Image.network to load images from the network and use a placeholder if floading fails.
Example:
var avatar = new Image(
image: new NetworkImageSafeProvider('http://example.com/avatars/123.jpg', placeholder: 'assets/placeholder.png'),
);
copied to clipboard
Remeber to add your placeholder image to your assets in pubspec.yaml
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.