Open orevial opened 2 months ago
to solve the problem for your example: "u":Style( textDecorationColor: Colors.red, ),
to solve the problem for your example: "u":Style( textDecorationColor: Colors.red, ),
This does not solve the problem, it is a workaround that does not fix the bug and does not fit most usecases : having an underline color that's different for standard texts and links. Take web for example : 99% of websites use a black/dark grey color for texts (even when underlined) whereas links are usually blue...
There are actually two problems :
1. Short links: Link color is missing
When having short
<a>
links nested in<u>
underlined text, the underlining color for the link is the color of the<u>
underlining element, where it is expected to be the color of the<a>
, as it is the inner child.E.g.:
Renders as follows:
2. Long links: Link color is used for text after the text
When having
<a>
links that span multiple lines nested in<u>
underlined text, the link is now actually using its defined color as expected, but this time the underlining color for the text after the link is the color of the link rather than the<u>
underlining color. E.g.:Renders as follows: