-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
- flutter_highlight.dart
Change RichText to SelectableText.rich
@override
Widget build(BuildContext context) {
/// ....
return Container(
color: theme[_rootKey]?.backgroundColor ?? _defaultBackgroundColor,
padding: padding,
child: SelectableText.rich(
TextSpan(
style: _textStyle,
children:
_convert(highlight.parse(source, language: language).nodes!),
),
),
);
}wartelski and Khip01
Metadata
Metadata
Assignees
Labels
No labels