-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
How to use ImageExtension ? #1409
Labels
Comments
Try this: ImageExtension(
builder: (extensionContext) {
final element = extensionContext.styledElement as ImageElement;
return ClipRRect(
borderRadius: BorderRadius.circular(5.0),
child: Image.network(
element.src,
),
);
},
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I previously added rounded corners to
<img>
tags in an older version of flutter_html, but how should I achieve the same effect with the new ImageExtension?The text was updated successfully, but these errors were encountered: