Delivery notes

This commit is contained in:
Hillel Coren 2020-11-27 16:06:54 +02:00
parent a430b41207
commit 0455a08bc9
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class _PDFScaffoldState extends State<PDFScaffold> {
controller: _pdfController,
onDocumentLoaded: (document) {
setState(() {
_pageCount = document.pagesCount;
_pageCount = document?.pagesCount ?? 0;
});
},
onPageChanged: (page) {