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();