Skip to content

Commit 71feaf6

Browse files
committed
fix: underlines rendered in wrong color
Cascade text decoration attributes color, thickness and style in addition to the textdecoration itself. fixes: #1361
1 parent 21b6987 commit 71feaf6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/style.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ class Style {
400400
child.textDecoration ?? TextDecoration.none,
401401
textDecoration ?? TextDecoration.none,
402402
]),
403+
textDecorationColor: child.textDecorationColor ?? textDecorationColor,
404+
textDecorationThickness: child.textDecorationThickness ?? textDecorationThickness,
405+
textDecorationStyle: child.textDecorationStyle ?? textDecorationStyle,
403406
textShadow: child.textShadow ?? textShadow,
404407
whiteSpace: child.whiteSpace ?? whiteSpace,
405408
wordSpacing: child.wordSpacing ?? wordSpacing,

0 commit comments

Comments
 (0)