websafe_network_image 1.0.0
websafe_network_image: ^1.0.0 copied to clipboard
Simple abstraction to be able to detect Web, Android, and iOS without a hard reference to `dart:io`
websafe_network_image #
A Flutter compatible library to handle cached network images for Android, iOS while falling back to the built in image for Web.
Using the library #
Add the repo to your Flutter pubspec.yaml file.
dependencies:
websafe_network_image: <<version>>
Then run...
flutter packages get
Example #
import 'package:websafe_network_image/websafe_network_image.dart';
...
Widget build(BuildContext context) {
return WebsafeNetworkImage(
imageUrl: imageUrl,
...
);
}