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
asaarnak
2023-03-24 00:31:39 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2023-03-27 16:51:10 -0300
Commit
83a1b0b47896a9ab2eef84b3bd53a9fe1710db4f
83a1b0b4
1 parent
2b9e8b7c
check if widget is mounted before setState
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
printing/lib/src/preview/custom.dart
printing/lib/src/preview/custom.dart
View file @
83a1b0b
...
...
@@ -158,6 +158,9 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom>
if
(!
infoLoaded
)
{
infoLoaded
=
true
;
Printing
.
info
().
then
((
PrintingInfo
printingInfo
)
{
if
(!
mounted
)
{
return
;
}
setState
(()
{
info
=
printingInfo
;
raster
();
...
...
Please
register
or
login
to post a comment