You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose a ImageStreamListener parameter in CachedNetworkImage and CachedNetworkImageProvider and attach it in MultiImageStreamCompleter > ImageStreamCompleter listeners.
Pitch
Currently the package has an errorListener that is fires when an exception occurs while loading the image, but, without any information.
However, ImageStreamCompleter has a listener that provides more information: ImageStreamListener.
/// If no error listeners (listeners with an [ImageStreamListener.onError]
/// specified) are attached, or if the handlers all rethrow the exception
/// verbatim (with `throw exception`), a [FlutterError] will be reported using
/// [FlutterError.reportError].
Platforms affected (mark all that apply)
📱 iOS
🤖 Android
The text was updated successfully, but these errors were encountered:
🏗 Enhancement Proposal
Expose a
ImageStreamListener
parameter inCachedNetworkImage
andCachedNetworkImageProvider
and attach it in MultiImageStreamCompleter > ImageStreamCompleter listeners.Pitch
Currently the package has an
errorListener
that is fires when an exception occurs while loading the image, but, without any information.However,
ImageStreamCompleter
has a listener that provides more information:ImageStreamListener
.Also, by attaching an
ImageStreamListener
, we can handle uncatched exceptions as described in some issues (#726, #651, Firebase Crashlytics...) as can be seen in:https://github.com/flutter/flutter/blob/a7ba717b2fa1f2afa82131272902e60b5f3630a5/packages/flutter/lib/src/painting/image_stream.dart#L669-L672
Platforms affected (mark all that apply)
The text was updated successfully, but these errors were encountered: