Closed michalsrutek closed 1 year ago
Once #1273 is merged, this is the proper way to get your expected behavior (in 3.0.0-beta.1 the API made accessing the children difficult):
return Html(
data: "<custom>Hello <span>there</span> <test></test> <p>new</p></custom>",
extensions: [
TagExtension(tagsToExtend: {"test"}, child: const Icon(Icons.abc)),
TagExtension.inline(
tagsToExtend: {"custom"},
builder: (extContext) {
return TextSpan(children: extContext.inlineSpanChildren!);
},
),
],
);
Still working on some better documentation!
Describe the bug:
When using
customRenders
, simple non-wrapped text does not get rendered. It has to be wrapped inp
,span
or similar.HTML to reproduce the issue:
Html
widget configuration:Expected behavior:
I would expect the word
Hello
to be rendered. But it is not - as it does not appear in thebuildChildren
function. If I comment out the following line, it works as expected.Is this the correct behavior - am I just missing something?
Screenshots:
Device details and Flutter/Dart/
flutter_html
versions:3.7.12
2.19.6
3.0.0-alpha.6