asaarnak
Committed by David PHAM-VAN

fix #1307 setState() called after dispose()

... ... @@ -306,6 +306,9 @@ class PdfPreviewState extends State<PdfPreview> {
if (!infoLoaded) {
infoLoaded = true;
Printing.info().then((PrintingInfo printingInfo) {
if (!mounted) {
return;
}
setState(() {
info = printingInfo;
});
... ...