Open zxl777 opened 3 months ago
Try this:
ImageExtension(
builder: (extensionContext) {
final element = extensionContext.styledElement as ImageElement;
return ClipRRect(
borderRadius: BorderRadius.circular(5.0),
child: Image.network(
element.src,
),
);
},
),
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?