From dcbc2b93aa2ae4c277d7c52616aebff776e01b5c Mon Sep 17 00:00:00 2001 From: Jon Mountjoy Date: Fri, 22 Jan 2021 21:11:44 +0000 Subject: [PATCH] Fix big errors in the docs --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3d3ac38..35b1955 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ dependencies: Import vb_image_cache in a dart file: ``` -import 'package:cache_image/vb_image_cache.dart'; +import 'package:vb_image_cache/vb_image_cache.dart'; ``` To support firebase storage download the generated google-services.json file and place it inside android/app. Next, modify the android/build.gradle file and the android/app/build.gradle file to add the Google services plugin as described by the Firebase assistant. @@ -32,19 +32,19 @@ VBCacheImage can be used with any widget that support an ImageProvider. ``` dart Image( fit: BoxFit.cover, - image: CacheImage('https://paste-your-link-here.com/image.png'), + image: VBCacheImage('https://paste-your-link-here.com/image.png'), ), Image( fit: BoxFit.cover, - image: CacheImage('https://paste-your-link-here.com/image.png', duration: Duration(seconds: 2), durationExpiration: Duration(seconds: 10)), + image: VBCacheImage('https://paste-your-link-here.com/image.png', duration: Duration(seconds: 2), durationExpiration: Duration(seconds: 10)), ), FadeInImage( fit: BoxFit.cover, placeholder: AssetImage('assets/placeholder.png'), - image: CacheImage('https://paste-your-link-here.com/image.png') + image: VBCacheImage('https://paste-your-link-here.com/image.png') ) ``` See the `example` directory for a complete sample app using Cache Image. -An extension to [cache_image](https://github.com/oxequa/flutter_cache_image) library. \ No newline at end of file +An extension to [cache_image](https://github.com/oxequa/flutter_cache_image) library.