Flutter_widget_from_html: Not support RGB color inline style

Created on 1 Jun 2020  Â·  7Comments  Â·  Source: daohoangson/flutter_widget_from_html

I have a code:
<p color: rgb(23, 156, 97); font-size: 18px; font-weight: bold;">Hello word!</p>

But I see it doesn't support RGB color style.
Please help me. Thanks

enhancement

Most helpful comment

v0.4.1 has been released with support for rgb / rgba @leewonghao. This version also includes support for named colors (e.g. red) @starup. Please try upgrading and let me know if it works for you guys.

All 7 comments

Yes, this package only supports hex values for now, from the README:

color: hex values only (#F00, #0F08, #00FF00 or #00FF0080)

I do plan to expand to support rgb, rgba, etc. though.

Yes, this package only supports hex values for now, from the README:

color: hex values only (#F00, #0F08, #00FF00 or #00FF0080)

I do plan to expand to support rgb, rgba, etc. though.

I understood, thank you so much.

also need this feature, please support color name,eg: body{ background-color:red};

also need this feature, please support color name

Yes, this is planned.

v0.4.1 has been released with support for rgb / rgba @leewonghao. This version also includes support for named colors (e.g. red) @starup. Please try upgrading and let me know if it works for you guys.

Thanks @daohoangson ! After update v0.4.1 it was worked fine :).

Awesome, I'm closing this issue now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mclark4386 picture mclark4386  Â·  3Comments

shofi-ishraak picture shofi-ishraak  Â·  6Comments

ahmadkhedr picture ahmadkhedr  Â·  7Comments

ahmadkhedr picture ahmadkhedr  Â·  6Comments

edwardez picture edwardez  Â·  7Comments