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 871 forks source link

nth-child() CSS #1036

Open maljassem opened 2 years ago

maljassem commented 2 years ago

Describe your feature request

hello, we need to use nth-child() css.

regards.

Additional context

A picture of a cute animal (not mandatory but encouraged)

erickok commented 2 years ago

I'm sorry I don't understand what you mean.

maljassem commented 2 years ago

The :nth-child() CSS pseudo-class matches elements based on their position among a group of siblings for example: I have a Table contains 6 rows I need to access the the second cell in the third row to add some styles

table tr:nth-child(3) td:nth-child(2){ font-weight: bold !important;

table

:nth-child() CSS pseudo-class doesn't work in flutter_html

more information here https://www.w3schools.com/cssref/sel_nth-child.asp

can you please add this feature?

erickok commented 2 years ago

I see. We have to check if the css parsing library supports this but even then it might be tricky to support this, as we'd have to count the cells in the dynamic table. Don't expect us to support this feature any time soon. Sorry.