PdfPreviewCustom constructor

const PdfPreviewCustom({
  1. Key? key,
  2. PdfPageFormat pageFormat = PdfPageFormat.a4,
  3. required LayoutCallback build,
  4. double? maxPageWidth,
  5. Widget onError(
    1. BuildContext context,
    2. Object error
    )?,
  6. Decoration? scrollViewDecoration,
  7. Decoration? pdfPreviewPageDecoration,
  8. List<int>? pages,
  9. EdgeInsets? previewPageMargin,
  10. EdgeInsets? padding,
  11. bool shouldRepaint = false,
  12. Widget? loadingWidget,
  13. double? dpi,
  14. ScrollPhysics? scrollPhysics,
  15. bool shrinkWrap = false,
  16. CustomPdfPagesBuilder? pagesBuilder,
  17. bool enableScrollToPage = false,
  18. 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,
});