Committed by
David PHAM-VAN
PdfPreview unhandled exception when popped
When route which contains PdfPreview is popped, we got a: Unhandled Exception: setState() called after dispose() The solution is to add if (!mounted) return; in the file pdf_preview.dart in the function _raster() just after await for (final PdfRaster page in Printing.raster(_doc, dpi: dpi)) {
Showing
2 changed files
with
4 additions
and
0 deletions
-
Please register or login to post a comment