Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2022-05-08 12:39:05 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6dd191a4a2c0bdf0187ec167db6acdb88c2f9b25
6dd191a4
1 parent
e344dc25
Fix lints
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
pdf/lib/src/widgets/text.dart
pdf/lib/src/widgets/text.dart
View file @
6dd191a
...
...
@@ -749,9 +749,9 @@ class RichText extends Widget with SpanningWidget {
/// Check available characters in the fonts
/// use fallback if needed and replace emojis
List
<
InlineSpan
>
_pre
p
rocessSpans
(
Context
context
)
{
List
<
InlineSpan
>
_pre
P
rocessSpans
(
Context
context
)
{
final
theme
=
Theme
.
of
(
context
);
final
default
s
tyle
=
theme
.
defaultTextStyle
;
final
default
S
tyle
=
theme
.
defaultTextStyle
;
final
spans
=
<
InlineSpan
>[];
text
.
visitChildren
((
...
...
@@ -849,7 +849,7 @@ class RichText extends Widget with SpanningWidget {
));
return
true
;
},
default
s
tyle
,
null
);
},
default
S
tyle
,
null
);
return
spans
;
}
...
...
@@ -885,7 +885,7 @@ class RichText extends Widget with SpanningWidget {
var
spanStart
=
0
;
var
overflow
=
false
;
_preprocessed
??=
_pre
p
rocessSpans
(
context
);
_preprocessed
??=
_pre
P
rocessSpans
(
context
);
void
_buildLines
()
{
for
(
final
span
in
_preprocessed
!)
{
...
...
@@ -909,7 +909,6 @@ class RichText extends Widget with SpanningWidget {
for
(
var
line
=
0
;
line
<
spanLines
.
length
;
line
++)
{
final
words
=
spanLines
[
line
].
split
(
RegExp
(
r'\s'
));
print
(
words
);
for
(
var
index
=
0
;
index
<
words
.
length
;
index
++)
{
final
word
=
words
[
index
];
...
...
Please
register
or
login
to post a comment