Showing
1 changed file
with
4 additions
and
5 deletions
| @@ -749,9 +749,9 @@ class RichText extends Widget with SpanningWidget { | @@ -749,9 +749,9 @@ class RichText extends Widget with SpanningWidget { | ||
| 749 | 749 | ||
| 750 | /// Check available characters in the fonts | 750 | /// Check available characters in the fonts |
| 751 | /// use fallback if needed and replace emojis | 751 | /// use fallback if needed and replace emojis |
| 752 | - List<InlineSpan> _preprocessSpans(Context context) { | 752 | + List<InlineSpan> _preProcessSpans(Context context) { |
| 753 | final theme = Theme.of(context); | 753 | final theme = Theme.of(context); |
| 754 | - final defaultstyle = theme.defaultTextStyle; | 754 | + final defaultStyle = theme.defaultTextStyle; |
| 755 | final spans = <InlineSpan>[]; | 755 | final spans = <InlineSpan>[]; |
| 756 | 756 | ||
| 757 | text.visitChildren(( | 757 | text.visitChildren(( |
| @@ -849,7 +849,7 @@ class RichText extends Widget with SpanningWidget { | @@ -849,7 +849,7 @@ class RichText extends Widget with SpanningWidget { | ||
| 849 | )); | 849 | )); |
| 850 | 850 | ||
| 851 | return true; | 851 | return true; |
| 852 | - }, defaultstyle, null); | 852 | + }, defaultStyle, null); |
| 853 | 853 | ||
| 854 | return spans; | 854 | return spans; |
| 855 | } | 855 | } |
| @@ -885,7 +885,7 @@ class RichText extends Widget with SpanningWidget { | @@ -885,7 +885,7 @@ class RichText extends Widget with SpanningWidget { | ||
| 885 | var spanStart = 0; | 885 | var spanStart = 0; |
| 886 | var overflow = false; | 886 | var overflow = false; |
| 887 | 887 | ||
| 888 | - _preprocessed ??= _preprocessSpans(context); | 888 | + _preprocessed ??= _preProcessSpans(context); |
| 889 | 889 | ||
| 890 | void _buildLines() { | 890 | void _buildLines() { |
| 891 | for (final span in _preprocessed!) { | 891 | for (final span in _preprocessed!) { |
| @@ -909,7 +909,6 @@ class RichText extends Widget with SpanningWidget { | @@ -909,7 +909,6 @@ class RichText extends Widget with SpanningWidget { | ||
| 909 | 909 | ||
| 910 | for (var line = 0; line < spanLines.length; line++) { | 910 | for (var line = 0; line < spanLines.length; line++) { |
| 911 | final words = spanLines[line].split(RegExp(r'\s')); | 911 | final words = spanLines[line].split(RegExp(r'\s')); |
| 912 | - print(words); | ||
| 913 | for (var index = 0; index < words.length; index++) { | 912 | for (var index = 0; index < words.length; index++) { |
| 914 | final word = words[index]; | 913 | final word = words[index]; |
| 915 | 914 |
-
Please register or login to post a comment