Closed blue492 closed 2 years ago
Did you include the dependency according to the README?
Did you include the dependency according to the README?
Which dependency you mean? and how to fix it?
read here https://github.com/Sub6Resources/flutter_html#flutter_html_table
I have Html plugin widget in a Column I added dependency as described and added this in Html
customRenders: {
tableMatcher(): tableRender(),
}
I got the following error message when I run it
======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
LayoutBuilder does not support returning intrinsic dimensions.
Calculating the intrinsic dimensions would require running the layout callback speculatively, which might mutate the live render object tree.
The relevant error-causing widget was:
Where is your Html() located? Show your code
Where is your Html() located? Show your code
// content_text is just string text
Widget content_show(){
Card(
margin: EdgeInsets.only(top: 10, bottom: 8, right: 15, left: 15 ),
elevation: 3,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(17),),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Html(data: content_text, shrinkWrap: true,
customRenders: {
tableMatcher(): tableRender(),
}
),
]);
}
My guess is that you have nested tables, which the library does not support. (but you did not show us the html you are using)
See #589 for that issue.
My guess is that you have nested tables, which the library does not support. (but you did not show us the html you are using)
See #589 for that issue.
I pasted the html code above
I'm using flutter_html: ^3.0.0-alpha.5, I used flutter_html: ^2.2.1 its same issue too.
Flutter_html don't present html text which contains tables, "TABLE SECTION" text is presented instead
How to fix it? Text example:
Thanks