-
-
Notifications
You must be signed in to change notification settings - Fork 908
Implement broken image placeholder #386
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
Comments
You could create a custom renderer for images and use there for example a CachedNetworkImage. 'img': (renderContext, child, attributes, _) => CachedNetworkImage(
width: attributes['width'],
placeholder: (context, url) => Container(),
imageUrl: attributes['src'],
errorWidget: (context, url, error) => Container(),
); |
You forgot to parse to double width. |
Closed
With the new image loading API (see README) you can do this:
This will render the Flutter logo as a placeholder. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can see that you have a way to handle Image network exceptions, but it would be great if we could also define placeholders for broken images.
The text was updated successfully, but these errors were encountered: