Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frameBuilder or loadingProgressBuilder error handling support #49292

Open
dballesteros7 opened this issue Jan 22, 2020 · 0 comments
Open

frameBuilder or loadingProgressBuilder error handling support #49292

dballesteros7 opened this issue Jan 22, 2020 · 0 comments
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

Comments

@dballesteros7
Copy link

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.

@VladyslavBondarenko VladyslavBondarenko added framework flutter/packages/flutter repository. See also f: labels. c: proposal A detailed proposal for a change to Flutter labels Jan 22, 2020
@goderbauer goderbauer added the P3 Issues that are less important to the Flutter project label Oct 10, 2022
@flutter-triage-bot flutter-triage-bot bot added team-framework Owned by Framework team triaged-framework Triaged by Framework team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants