We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17a077 commit 1aabcceCopy full SHA for 1aabcce
flutter_highlight/lib/flutter_highlight.dart
@@ -28,12 +28,13 @@ class HighlightView extends StatelessWidget {
28
final TextStyle textStyle;
29
30
HighlightView(
31
- this.source, {
+ String input, {
32
this.language,
33
this.theme = const {},
34
this.padding,
35
this.textStyle,
36
- });
+ int tabSize = 8, // TODO: https://github.com/flutter/flutter/issues/50087
37
+ }) : source = input.replaceAll('\t', ' ' * tabSize);
38
39
List<TextSpan> _convert(List<Node> nodes) {
40
List<TextSpan> spans = [];
0 commit comments