cache_network_media 2.0.0
cache_network_media: ^2.0.0 copied to clipboard
cached_network_image, but for SVG and Lottie too. Disk-cached network images, SVGs and Lottie animations with offline support, headers and download progress.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cache_network_mediaThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
cache_network_media: ^2.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:cache_network_media/cache_network_media.dart';