ready_image library
Classes
- BaseCacheManager
- Interface of the CacheManager. In general CacheManager can be used directly.
- CachedNetworkImage
- Image widget to show NetworkImage with caching functionality.
- CachedNetworkImageProvider
- IO implementation of the CachedNetworkImageProvider; the ImageProvider to load network images using a cache.
- CacheInfoRepository
- Base class for cache info repositories
- CacheLogger
- CacheLogger which is used by the cache manager to log useful information
- CacheManager
- Flutter Cache Manager Copyright (c) 2019 Rene Floor Released under MIT License. Basic cache manager implementation, which should be used as a single instance.
- CacheObjectProvider
- Config
- DefaultCacheManager
- The DefaultCacheManager that can be easily used directly. The code of this implementation can be used as inspiration for more complex cache managers.
- DownloadProgress
- Progress of the file that is being downloaded from the originalUrl.
- FileFetcherResponse
- FileInfo
- FileInfo contains the fetch File next to some info on the validity and the origin of the file.
- FileResponse
- FileService
- Flutter Cache Manager Copyright (c) 2019 Rene Floor Released under MIT License. Defines the interface for a file service. Most common file service will be an HttpFileService, however one can also make something more specialized. For example you could fetch files from other apps or from local storage.
- FileServiceResponse
- Defines the interface for a get result of a FileService.
- HeroReadyImage
- instead of using the normal hero you can use this as it will animate its properties
- HttpFileFetcherResponse
- Deprecated
- HttpFileService
-
HttpFileService is the most common file service and the default for
WebHelper
. One can easily adapt it to use dio or any other http client. - HttpGetResponse
- Basic implementation of a FileServiceResponse for http requests.
- ImageLoader
- ImageLoader class to load images differently on various platforms.
- JsonCacheInfoRepository
- MultiImageStreamCompleter
- An ImageStreamCompleter with support for loading multiple images.
- NonStoringObjectProvider
- ReadyImage
- Wrapper around cashed network image
Mixins
Extensions
Constants
-
supportedFileNames
→ const List<
String> -
['jpg', 'jpeg', 'png', 'tga', 'cur', 'ico']
Properties
- cacheLogger ↔ CacheLogger
-
Instance of the cache manager. Can be set to a custom one if preferred.
read / write
- timeDilation → double
-
Slows down animations by this factor to help in development.
read-only
Enums
- CacheManagerLogLevel
- Log levels of the cache manager. Debug shows failed downloads and verbose also shows successful downloads and cache retrievals.
- FileSource
- Flutter Cache Manager Copyright (c) 2019 Rene Floor Released under MIT License. Enum for whether the file is coming from the cache or is just downloaded.
- ImageRenderMethodForWeb
- Render options for images on the web platform.
Typedefs
- ErrorListener = void Function()
- Function which is called after loading the image failed.
-
FileFetcher
= Future<
FileFetcherResponse> Function(String url, {Map<String, String> ? headers}) - Flutter Cache Manager Copyright (c) 2019 Rene Floor Released under MIT License. Deprecated FileFetcher function
-
ImageWidgetBuilder
= Widget Function(BuildContext context, ImageProvider<
Object> imageProvider) - Builder function to create an image widget. The function is called after the ImageProvider completes the image loading.
- LoadingErrorWidgetBuilder = Widget Function(BuildContext context, String url, dynamic error)
- Builder function to create an error widget. This builder is called when the image failed loading, for example due to a 404 NotFound exception.
- PlaceholderWidgetBuilder = Widget Function(BuildContext context, String url)
- Builder function to create a placeholder widget. The function is called once while the ImageProvider is loading the image.
- ProgressIndicatorBuilder = Widget Function(BuildContext context, String url, DownloadProgress progress)
- Builder function to create a progress indicator widget. The function is called every time a chuck of the image is downloaded from the web, but at least once during image loading.