Base64 encoded images currently throw an exception. Can they be supported?
I was able to work around this by implementing a custom render function
customRender: (node, children) {
if (node is dom.Element) {
switch (node.localName) {
case "img":
Uint8List bytes =
base64.decode(node.attributes['src'].split(",")[1]);
return Image.memory(bytes);
}
}
},
I'm going to reopen this because I think base64 images fall under the scope of this project. I'll work on adding them. Thanks for the report!
Support for base64 images has been added in version 0.9.3. Thanks @andokai for the issue report.
Most helpful comment
Support for base64 images has been added in version 0.9.3. Thanks @andokai for the issue report.