Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.8k stars 874 forks source link

Html's "i" class not working #1138

Closed RahulMachhiC closed 2 years ago

RahulMachhiC commented 2 years ago

had tried to add "" but Not Showing in App

Screenshot 2022-09-08 at 12 06 24 PM
erickok commented 2 years ago

The little bit of HTML in that screenshot has an <i> tag with no content. What are you trying to do? What did you expect to be rendered?

RahulMachhiC commented 2 years ago

I Want Icon From "I" class tag

erickok commented 2 years ago

Sorry I still do not understand. An icon? What icon? In plain html the <i> tag is for making text italic.

Perhaps you have some custom js that parses tags with the fa or fa-cloud class but that's not something this library will do for you. It is just to create widgets from html, following the html render standards.

RahulMachhiC commented 2 years ago

How to use custom JS ?

erickok commented 2 years ago

flutter_html does not do anything with JS. I also do not know of a library that does.

You can perhaps use our custom render feature to manually handle and render <i> tags with that specific class. In any case, this is custom logic you have to implement yourself.