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

Add default error widget that can be customized (GH-48) #49

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

jfahrenkrug
Copy link
Collaborator

Add a default error widget that is shown when an image fails to load. The default error widget shows a red Icons.broken_image and '🖼️💥🚫' (image, boom, no entry) as a message underneath. You can customize the error widget by subclassing EasyImageProvider and overriding errorWidgetBuilder. See the README for an example.

Checklist

Please ensure your pull request fulfills the following requirements:

  • The commit messages follow our guidelines (CONTRIBUTING.md)
  • Tests for any changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Type

What kind of change does this pull request introduce?

[ ] Bug fix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other (please describe below)

Breaking Changes

Does this pull request introduce any breaking changes?

[ ] Yes
[X] No

Add a default error widget that is shown when an image fails to load. The default error widget shows a red `Icons.broken_image` and '🖼️💥🚫' (image, boom, no entry) as a message underneath. You can customize the error widget by subclassing `EasyImageProvider` and overriding `errorWidgetBuilder`. See the README for an example.
@jfahrenkrug jfahrenkrug merged commit 7bfbed1 into main Dec 25, 2023
1 check passed
@jfahrenkrug jfahrenkrug deleted the add_customizable_error_widget branch December 25, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants