Hi! I observed that onDocumentLoaded fires in advance. Whenever my setState executes, there's still a loading progress bar shown for a few milliseconds before the actual PDF file. Here is a snippet of my code:
child: SfPdfViewer.network(
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
onDocumentLoaded: (_) {
setState(() {
isLoading = false;
});
},
),
If there's a way around this, replies are appreciated. Thanks!