I have updated my flutter version and I am getting following errors. Other than that everything is working fine.
The named parameter 'tagsList' isn't defined. The getter 'tags' isn't defined for the type 'Html'. The named parameter 'customRenders' isn't defined. The argument type 'EdgeInsets' can't be assigned to the parameter type 'HtmlPaddings?'. The argument type 'EdgeInsets' can't be assigned to the parameter type 'HtmlPaddings?'.
Here is my code:
Padding(
padding: const EdgeInsets.fromLTRB(Dimensions.paddingSizeSmall, 0, Dimensions.paddingSizeDefault, Dimensions.paddingSizeSmall),
child: Html(data: widget.productModel!.details,
tagsList: Html.tags,
customRenders: {
tableMatcher(): tableRender(),
},
style: {
"table": Style(
backgroundColor: const Color.fromARGB(0x50, 0xee, 0xee, 0xee),
),
"tr": Style(
border: const Border(bottom: BorderSide(color: Colors.grey)),
),
"th": Style(
padding: const EdgeInsets.all(6),
backgroundColor: Colors.grey,
),
"td": Style(
padding: const EdgeInsets.all(6),
alignment: Alignment.topLeft,
),
Can anyone please help me. I know this is the problem generated by flutter_html. But I am unable to find solution.
I tried all the forums and everyone I know. But I am having this problem after updating dependencies and flutter. So please anyone help me.