network_image_safe_provider

Last updated:

0 purchases

network_image_safe_provider Image
network_image_safe_provider Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.