From e997ee9298b8f4d3413f97cdc38753336a458f7c Mon Sep 17 00:00:00 2001 From: singerdmx Date: Sun, 20 Dec 2020 18:33:21 -0800 Subject: [PATCH] Fix TextSpan _buildTextSpan(BuildContext context) method --- lib/widgets/text_line.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/widgets/text_line.dart b/lib/widgets/text_line.dart index 52728639..b9a5796a 100644 --- a/lib/widgets/text_line.dart +++ b/lib/widgets/text_line.dart @@ -60,8 +60,9 @@ class TextLine extends StatelessWidget { TextSpan _buildTextSpan(BuildContext context) { DefaultStyles defaultStyles = DefaultStyles.getInstance(context); - List children = - line.children.map((node) => _getTextSpanFromNode(defaultStyles, node)); + List children = line.children + .map((node) => _getTextSpanFromNode(defaultStyles, node)) + .toList(growable: false); TextStyle textStyle = TextStyle();