loadingBannerBuilder property
Build loading banner.
Please note that the progress is only reported for PdfViewer.uri on non-Web platforms.
The following fragment illustrates how to build loading banner that shows the download progress:
loadingBannerBuilder: (context, bytesDownloaded, totalBytes) {
return Center(
child: CircularProgressIndicator(
// totalBytes is null if the total bytes is unknown
value: totalBytes != null ? bytesDownloaded / totalBytes : null,
backgroundColor: Colors.grey,
),
);
},
Implementation
final PdfViewerLoadingBannerBuilder? loadingBannerBuilder;