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-02-23 07:16:54 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
58f6a05a43b75bc357d2d8b1d61ef220a123c374
58f6a05a
1 parent
c4db1626
Fix MultiPage max height
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/document.dart
pdf/CHANGELOG.md
View file @
58f6a05
...
...
@@ -2,6 +2,7 @@
*
Fix dart lint warnings
*
Improve font bounds calculation
*
Add RichText Widget
*
Fix MultiPage max height
# 1.3.2
*
Update Readme
...
...
pdf/lib/widgets/document.dart
View file @
58f6a05
...
...
@@ -226,13 +226,16 @@ class MultiPage extends Page {
child
.
layout
(
context
,
childConstraints
,
parentUsesSize:
false
);
if
(
offsetStart
-
child
.
box
.
height
<
offsetEnd
)
{
if
(
child
.
box
.
height
<
pageFormat
.
height
-
margin
.
vertical
)
{
if
(
child
.
box
.
height
<
=
pageFormat
.
height
-
margin
.
vertical
)
{
context
=
null
;
continue
;
}
if
(!(
child
is
SpanningWidget
))
{
throw
Exception
(
"Widget won't fit into the page"
);
throw
Exception
(
'Widget won
\'
t fit into the page as its height (
${child.box.height}
) '
'exceed a page height (
${pageFormat.height - margin.vertical}
). '
'You probably need a SpanningWidget or use a single page layout'
);
}
final
SpanningWidget
span
=
child
;
...
...
Please
register
or
login
to post a comment