Upgrading cached_network_image 1 to 2
Unknown1.1.3 → 2.5.1
Fetching 20 releases from GitHub…0 / 20
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Dart SDK requirement changed in 2.5.0: >=2.0.0-dev.28.0 <3.0.0 → >=2.10.0 <3.0.0.
Requires Flutter >=1.20.0 from 2.5.1 (none stated before).
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
class CachedNetworkImageState extends State<CachedNetworkImage> with TickerProviderStateMixin - removed:
field CachedNetworkImageProvider.cacheManager: final BaseCacheManager - removed:
field CachedNetworkImageProvider.errorListener: final ErrorListener - removed:
field CachedNetworkImageProvider.headers: final Map<String, String> - removed:
field CachedNetworkImageProvider.scale: final double - removed:
field CachedNetworkImageProvider.url: final String - removed:
get CachedNetworkImageProvider.hashCode: int - removed:
method CachedNetworkImage.createState(): CachedNetworkImageState - removed:
method CachedNetworkImageProvider.obtainKey( ImageConfiguration configuration): Future<CachedNetworkImageProvider> - removed:
method CachedNetworkImageProvider.operator ==(dynamic other): bool - removed:
method CachedNetworkImageProvider.toString(): String - removed:
method CachedNetworkImageState.build(BuildContext context): Widget - removed:
method CachedNetworkImageState.didUpdateWidget(CachedNetworkImage oldWidget): void - removed:
method CachedNetworkImageState.dispose(): void - removed:
typedef Widget ImageWidgetBuilder( BuildContext context, ImageProvider imageProvider) - removed:
typedef Widget LoadingErrorWidgetBuilder( BuildContext context, String url, Object error) - removed:
typedef Widget PlaceholderWidgetBuilder(BuildContext context, String url) - removed:
typedef void ErrorListener() - changed:
class CachedNetworkImage extends StatefulWidget → class CachedNetworkImage extends StatelessWidget - changed:
class CachedNetworkImageProvider extends ImageProvider<CachedNetworkImageProvider> → class CachedNetworkImageProvider: abstract extends ImageProvider<CachedNetworkImageProvider> - changed:
ctor CachedNetworkImage({ Key key, @required this.imageUrl, this.imageBuilder, this.placeholder, this.errorWidget, this.fadeOutDuration = …, this.fadeOutCurve = …, this.fadeInDuration = …, this.fadeInCurve = …, this.width, this.height, this.fit, this.alignment = …, this.repeat = …, this.matchTextDirection = …, this.httpHeaders, this.cacheManager, this.useOldImageOnUrlChange = …, this.color, this.… → ctor CachedNetworkImage({ Key key, @required this.imageUrl, this.httpHeaders, this.imageBuilder, this.placeholder, this.progressIndicatorBuilder, this.errorWidget, this.fadeOutDuration = …, this.fadeOutCurve = …, this.fadeInDuration = …, this.fadeInCurve = …, this.width, this.height, this.fit, this.alignment = …, this.repeat = …, this.matchTextDirection = …, this.cacheManager, this.useOldImageOnU… - changed:
ctor CachedNetworkImageProvider(this.url, {this.scale = …, this.errorListener, this.headers, this.cacheManager}) → ctor CachedNetworkImageProvider( String url, { int maxHeight, int maxWidth, String cacheKey, double scale, @Deprecated('ErrorListener is deprecated, use listeners on the imagestream') ErrorListener errorListener, Map<String, String> headers, BaseCacheManager cacheManager, ImageRenderMethodForWeb imageRenderMethodForWeb, }) - changed:
method CachedNetworkImageProvider.load(CachedNetworkImageProvider key): ImageStreamCompleter → method CachedNetworkImageProvider.load( CachedNetworkImageProvider key, DecoderCallback decode): ImageStreamCompleter - added:
class MultiImageStreamCompleter extends ImageStreamCompleter - added:
ctor MultiImageStreamCompleter({ @required Stream<ui.Codec> codec, @required double scale, Stream<ImageChunkEvent> chunkEvents, InformationCollector informationCollector, }) - added:
enum ImageRenderMethodForWeb - added:
field CachedNetworkImage.cacheKey: final String - added:
field CachedNetworkImage.maxHeightDiskCache: final int - added:
field CachedNetworkImage.maxWidthDiskCache: final int - added:
field CachedNetworkImage.memCacheHeight: final int - added:
field CachedNetworkImage.memCacheWidth: final int - added:
field CachedNetworkImage.progressIndicatorBuilder: final ProgressIndicatorBuilder - added:
get CachedNetworkImageProvider.cacheKey: String - added:
get CachedNetworkImageProvider.cacheManager: BaseCacheManager - added:
get CachedNetworkImageProvider.errorListener: ErrorListener - added:
get CachedNetworkImageProvider.headers: Map<String, String> - added:
get CachedNetworkImageProvider.maxHeight: int - added:
get CachedNetworkImageProvider.maxWidth: int - added:
get CachedNetworkImageProvider.scale: double - added:
get CachedNetworkImageProvider.url: String - added:
get timeDilation: double - added:
member ImageRenderMethodForWeb.HtmlImage - added:
member ImageRenderMethodForWeb.HttpGet - added:
method CachedNetworkImage.build(BuildContext context): Widget - added:
method MultiImageStreamCompleter.addListener(ImageStreamListener listener): void - added:
method MultiImageStreamCompleter.removeListener(ImageStreamListener listener): void - added:
static method CachedNetworkImage.evictFromCache( String url, { String cacheKey, BaseCacheManager cacheManager, double scale = …, }): Future - added:
typedef ErrorListener = void Function() - added:
typedef ImageWidgetBuilder = Widget Function( BuildContext context, ImageProvider imageProvider, ) - added:
typedef LoadingErrorWidgetBuilder = Widget Function( BuildContext context, String url, dynamic error, ) - added:
typedef PlaceholderWidgetBuilder = Widget Function( BuildContext context, String url, ) - added:
typedef ProgressIndicatorBuilder = Widget Function( BuildContext context, String url, DownloadProgress progress, )