Open AlexV525 opened 2 years ago
So IMO the decoration paint is losing track when spaces are added at the end, which makes the area transparent, then the paint might be decided not to draw on it.
This is working as intended and matches behavior in the browsers as well.
code https://github.com/shirne/tester/blob/master/lib/text_page.dart flutter run -d chrome flutter run -d chrome --web-renderer=html
This is working as intended and matches behavior in the browsers as well.
It matches the default behavior in the browser, but after you tweak the element's style, the underline can be extended to the whole text.
Reopening since it's likely to have an opt-in implementation here.
This also happens with the other line decorations (lineThrough
& overline
). See https://github.com/flutter/flutter/issues/132816 which uses a font that draws all three lines at the same time.
Steps to Reproduce
Expected results:
Actual results:
Additional context
The workaround for this single issue is pretty straightforward. Adding a zero-width character
\u{200b}
at the end will make the decoration work again.