Skip to content

Commit 036f5a9

Browse files
committed
fix: richtext
1 parent ef6fc86 commit 036f5a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flutter_highlight/lib/flutter_highlight.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class HighlightView extends StatelessWidget {
8989
return Container(
9090
color: theme[_rootKey]?.backgroundColor ?? _defaultBackgroundColor,
9191
padding: padding,
92-
child: SelectableText.rich(
93-
TextSpan(
92+
child: RichText(
93+
text: TextSpan(
9494
style: _textStyle,
9595
children: _convert(highlight.parse(source, language: language).nodes),
9696
),

0 commit comments

Comments
 (0)