From 6888b0a929dca4028321fccb25cc6bf241b604c6 Mon Sep 17 00:00:00 2001 From: tanay Date: Thu, 8 Apr 2021 22:23:33 -0400 Subject: [PATCH] Fix text decoration not cascading between children and parent --- lib/style.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/style.dart b/lib/style.dart index 2e722a0830..651efb91eb 100644 --- a/lib/style.dart +++ b/lib/style.dart @@ -307,6 +307,9 @@ class Style { listStyleType: child.listStyleType ?? listStyleType, listStylePosition: child.listStylePosition ?? listStylePosition, textAlign: child.textAlign ?? textAlign, + textDecoration: TextDecoration.combine( + [child.textDecoration ?? TextDecoration.none, + textDecoration ?? TextDecoration.none]), textShadow: child.textShadow ?? textShadow, whiteSpace: child.whiteSpace ?? whiteSpace, wordSpacing: child.wordSpacing ?? wordSpacing,