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
2020-04-27 17:54:09 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f3cf84e7974c964e630908b80e3d90e8da54f58
2f3cf84e
1 parent
f21ccc57
Fix InheritedWidget issue with multiple pages
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/widget.dart
pdf/CHANGELOG.md
View file @
2f3cf84
...
...
@@ -4,6 +4,7 @@
-
Fix justified text softWrap issue
-
Set a default color for Dividers
-
Fix InheritedWidget issue with multiple pages
## 1.7.0
...
...
pdf/lib/widgets/widget.dart
View file @
2f3cf84
...
...
@@ -203,15 +203,8 @@ class InheritedWidget extends Widget {
@override
void
layout
(
Context
context
,
BoxConstraints
constraints
,
{
bool
parentUsesSize
=
false
})
{
if
(
_context
==
null
)
{
// final Inherited inherited = build(context);
if
(
inherited
!=
null
)
{
_context
=
context
.
inheritFrom
(
inherited
);
}
}
_context
??=
context
;
_child
??=
build
(
_context
);
_context
=
inherited
!=
null
?
context
.
inheritFrom
(
inherited
)
:
context
;
_child
=
build
(
_context
);
if
(
_child
!=
null
)
{
_child
.
layout
(
_context
,
constraints
,
parentUsesSize:
parentUsesSize
);
...
...
Please
register
or
login
to post a comment