Skip to content

Commit 4d75e7c

Browse files
authored
Merge pull request Sub6Resources#614 from tneotia/bugfix/text-decoration-cascading
Fix text decoration not cascading between children and parent
2 parents df53f43 + 6888b0a commit 4d75e7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/style.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ class Style {
307307
listStyleType: child.listStyleType ?? listStyleType,
308308
listStylePosition: child.listStylePosition ?? listStylePosition,
309309
textAlign: child.textAlign ?? textAlign,
310+
textDecoration: TextDecoration.combine(
311+
[child.textDecoration ?? TextDecoration.none,
312+
textDecoration ?? TextDecoration.none]),
310313
textShadow: child.textShadow ?? textShadow,
311314
whiteSpace: child.whiteSpace ?? whiteSpace,
312315
wordSpacing: child.wordSpacing ?? wordSpacing,

0 commit comments

Comments
 (0)