flutter_html
flutter_html copied to clipboard
onLinkTap in Nested Html widget not working
onLinkTap in Nested Html widget not working. For example,
Html(data: 'Hello <object id="foo"></object>',
extensions: [
TagExtension(
tagsToExtend: {'object'},
builder: (ExtensionContext ec) {
return Column(children: [
Text('Foo');
Html(data: '<a href="mydomain.com">Click me</a>',
onLinkTap: (url, attributes, element) async {
debugPrint('launching url: $url');
},);
]);
},
),
],
);
The link "Click me" is rendered, but the onLinkTap is never called when clicking it.