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
2019-09-18 19:18:18 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e16c789b15d7dea20fa016114c63095b05cbe051
e16c789b
1 parent
9d3471ec
Fix Text alignment
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/text.dart
pdf/pubspec.yaml
pdf/CHANGELOG.md
View file @
e16c789
# Changelog
## 1.3.22
-
Fix Text alignment
## 1.3.21
-
Add TextDecoration
...
...
pdf/lib/widgets/text.dart
View file @
e16c789
...
...
@@ -530,7 +530,8 @@ class RichText extends Widget {
spanStart
+=
spanCount
;
decorationStart
=
_decorations
.
length
;
if
(
maxLines
!=
null
&&
++
lines
>
maxLines
)
{
lines
++;
if
(
maxLines
!=
null
&&
lines
>
maxLines
)
{
break
;
}
...
...
@@ -603,7 +604,8 @@ class RichText extends Widget {
);
}
if
(
maxLines
!=
null
&&
++
lines
>
maxLines
)
{
lines
++;
if
(
maxLines
!=
null
&&
lines
>
maxLines
)
{
break
;
}
...
...
@@ -651,7 +653,8 @@ class RichText extends Widget {
spanStart
+=
spanCount
;
decorationStart
=
_decorations
.
length
;
if
(
maxLines
!=
null
&&
++
lines
>
maxLines
)
{
lines
++;
if
(
maxLines
!=
null
&&
lines
>
maxLines
)
{
return
false
;
}
...
...
pdf/pubspec.yaml
View file @
e16c789
...
...
@@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/pdf
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
1.3.2
1
version
:
1.3.2
2
environment
:
sdk
:
"
>=2.1.0
<3.0.0"
...
...
Please
register
or
login
to post a comment