network_image_safe_provider 1.0.2

Flutter Android iOS

A Flutter library to handle NetworkImageProvider http. A placeholder will be displayed if there is a network error.

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'),
);

Remeber to add your placeholder image to your assets in pubspec.yaml

2
likes
100
pub points
64%
popularity

Publisher

micropp.net

A Flutter library to handle NetworkImageProvider http. A placeholder will be displayed if there is a network error.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on network_image_safe_provider