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:59:30 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2024-01-27 12:11:28 -0400
Commit
750fd0fb66b68ad23d8e19b42ccae4ecfc7ee711
750fd0fb
1 parent
95de8782
Make `pageGlobalKeys` predefined
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
printing/lib/src/preview/custom.dart
printing/lib/src/preview/custom.dart
View file @
750fd0f
...
...
@@ -110,7 +110,7 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom>
with
PdfPreviewRaster
{
final
listView
=
GlobalKey
();
List
<
GlobalKey
>
_pageGlobalKeys
=
<
GlobalKey
>[]
;
final
_pageGlobalKeys
=
List
.
generate
(
100
,
(
index
)
=>
GlobalKey
())
;
bool
infoLoaded
=
false
;
...
...
@@ -217,11 +217,6 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom>
);
}
_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