canShowPageLoadingIndicator property
Indicates whether the page loading busy indicator can be displayed or not.
If this property is set as false
, the page loading indicator in SfPdfViewer will not be displayed.
Defaults to true
.
This example demonstrates how to set the visibility of the page loading indicator in the SfPdfViewer.
class MyAppState extends State<MyApp> {
final GlobalKey<SfPdfViewerState> _pdfViewerKey = GlobalKey();
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Syncfusion Flutter PDF Viewer'),
),
body: SfPdfViewer.network(
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
key: _pdfViewerKey,
canShowPageLoadingIndicator: false,
),
);
}
}
Implementation
final bool canShowPageLoadingIndicator;