Skip to content

Commit c8a1651

Browse files
a1rwulfSub6Resources
authored andcommitted
fix: underlines rendered in wrong color
Cascade text decoration attributes color, thickness and style in addition to the textdecoration itself. fixes: #1361
1 parent e97aa7a commit c8a1651

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
@@ -398,6 +398,9 @@ class Style {
398398
child.textDecoration ?? TextDecoration.none,
399399
textDecoration ?? TextDecoration.none,
400400
]),
401+
textDecorationColor: child.textDecorationColor ?? textDecorationColor,
402+
textDecorationThickness: child.textDecorationThickness ?? textDecorationThickness,
403+
textDecorationStyle: child.textDecorationStyle ?? textDecorationStyle,
401404
textShadow: child.textShadow ?? textShadow,
402405
whiteSpace: child.whiteSpace ?? whiteSpace,
403406
wordSpacing: child.wordSpacing ?? wordSpacing,

0 commit comments

Comments
 (0)