PdfPreviewCustom constructor
      const
      PdfPreviewCustom({ 
    
- Key? key,
- PdfPageFormat pageFormat = PdfPageFormat.a4,
- required LayoutCallback build,
- double? maxPageWidth,
- Widget onError(- BuildContext context,
- Object error
 
- Decoration? scrollViewDecoration,
- Decoration? pdfPreviewPageDecoration,
- List<int> ? pages,
- EdgeInsets? previewPageMargin,
- EdgeInsets? padding,
- bool shouldRepaint = false,
- Widget? loadingWidget,
- double? dpi,
- ScrollPhysics? scrollPhysics,
- bool shrinkWrap = false,
- CustomPdfPagesBuilder? pagesBuilder,
- bool enableScrollToPage = false,
- ValueChanged<bool> ? onZoomChanged,
Show a pdf document built on demand
Implementation
const PdfPreviewCustom({
  super.key,
  this.pageFormat = PdfPageFormat.a4,
  required this.build,
  this.maxPageWidth,
  this.onError,
  this.scrollViewDecoration,
  this.pdfPreviewPageDecoration,
  this.pages,
  this.previewPageMargin,
  this.padding,
  this.shouldRepaint = false,
  this.loadingWidget,
  this.dpi,
  this.scrollPhysics,
  this.shrinkWrap = false,
  this.pagesBuilder,
  this.enableScrollToPage = false,
  this.onZoomChanged,
});