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
Aleksei
2024-01-22 08:46:31 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2024-01-27 12:11:28 -0400
Commit
95de8782c232fe404f36f47da78565b5dc958cb8
95de8782
1 parent
1c895b09
Fill `pageGlobalKeys` oneach re-build
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
printing/lib/src/preview/custom.dart
printing/lib/src/preview/custom.dart
View file @
95de878
...
...
@@ -217,12 +217,10 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom>
);
}
if
(
_pageGlobalKeys
.
isEmpty
)
{
_pageGlobalKeys
=
List
.
generate
(
pages
.
length
,
(
index
)
=>
GlobalKey
(
debugLabel:
'pdf-page-
$index
'
),
);
}
_pageGlobalKeys
=
List
.
generate
(
pages
.
length
,
(
index
)
=>
GlobalKey
(
debugLabel:
'pdf-page-
$index
'
),
);
if
(
widget
.
pagesBuilder
!=
null
)
{
return
widget
.
pagesBuilder
!(
context
,
pages
);
...
...
Please
register
or
login
to post a comment