PdfViewerParams constructor

const PdfViewerParams({
  1. int? pageNumber,
  2. double? padding,
  3. LayoutPagesFunc? layoutPages,
  4. BuildPageContentFunc? buildPagePlaceholder,
  5. BuildPageContentFunc? buildPageOverlay,
  6. BoxDecoration? pageDecoration,
  7. Axis scrollDirection = Axis.vertical,
  8. PanAxis panAxis = PanAxis.free,
  9. bool alignPanAxis = false,
  10. EdgeInsets boundaryMargin = EdgeInsets.zero,
  11. double maxScale = 20,
  12. double minScale = 0.1,
  13. double scrollOffsetRatio = 1.0,
  14. double fullPurgeDistThreshold = 66,
  15. double partialRemovalDistThreshold = 30,
  16. int realSizeOverlayUpdateBufferDuration = 20,
  17. bool allowAntialiasingIOS = true,
  18. GestureScaleEndCallback? onInteractionEnd,
  19. GestureScaleStartCallback? onInteractionStart,
  20. GestureScaleUpdateCallback? onInteractionUpdate,
  21. bool panEnabled = true,
  22. bool scaleEnabled = true,
  23. OnPdfViewerControllerInitialized? onViewerControllerInitialized,
  24. double interactionEndFrictionCoefficient = 0.0000135,
})

Initializes the parameters.

Implementation

const PdfViewerParams({
  this.pageNumber,
  this.padding,
  this.layoutPages,
  this.buildPagePlaceholder,
  this.buildPageOverlay,
  this.pageDecoration,
  this.scrollDirection = Axis.vertical,
  this.panAxis = PanAxis.free,
  this.alignPanAxis = false,
  this.boundaryMargin = EdgeInsets.zero,
  this.maxScale = 20,
  this.minScale = 0.1,
  this.scrollOffsetRatio = 1.0,
  this.fullPurgeDistThreshold = 66,
  this.partialRemovalDistThreshold = 30,
  this.realSizeOverlayUpdateBufferDuration = 20,
  this.allowAntialiasingIOS = true,
  this.onInteractionEnd,
  this.onInteractionStart,
  this.onInteractionUpdate,
  this.panEnabled = true,
  this.scaleEnabled = true,
  this.onViewerControllerInitialized,
  this.interactionEndFrictionCoefficient = 0.0000135,
});