frameBuilder or loadingProgressBuilder error handling support #49292
Labels
c: proposal
A detailed proposal for a change to Flutter
customer: dream (g3)
framework
flutter/packages/flutter repository. See also f: labels.
P3
Issues that are less important to the Flutter project
team-framework
Owned by Framework team
triaged-framework
Triaged by Framework team
Use case
The spec for image loading for our product specifies that there is a different placeholder image shown before an image is loaded and when the image loading fails. Let's call it an errorPlaceholder.
Implementing this with the current Image widget is not possible because there's no way to access the onError callback from the underlying ImageStream. Currently, this requires re-implementing the Image widget.
Proposal
Add a way in frameBuilder or the loadingProgressBuilder to access the onError callback of the underlying stream.
The text was updated successfully, but these errors were encountered: