PdfViewerParams constructor
const
PdfViewerParams({
- int? pageNumber,
- double? padding,
- LayoutPagesFunc? layoutPages,
- BuildPageContentFunc? buildPagePlaceholder,
- BuildPageContentFunc? buildPageOverlay,
- BoxDecoration? pageDecoration,
- Axis scrollDirection = Axis.vertical,
- PanAxis panAxis = PanAxis.free,
- bool alignPanAxis = false,
- EdgeInsets boundaryMargin = EdgeInsets.zero,
- double maxScale = 20,
- double minScale = 0.1,
- bool allowAntialiasingIOS = true,
- GestureScaleEndCallback? onInteractionEnd,
- GestureScaleStartCallback? onInteractionStart,
- GestureScaleUpdateCallback? onInteractionUpdate,
- bool panEnabled = true,
- bool scaleEnabled = true,
- OnPdfViewerControllerInitialized? onViewerControllerInitialized,
- double? scrollByMouseWheel = 0.1,
- 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.allowAntialiasingIOS = true,
this.onInteractionEnd,
this.onInteractionStart,
this.onInteractionUpdate,
this.panEnabled = true,
this.scaleEnabled = true,
this.onViewerControllerInitialized,
this.scrollByMouseWheel = 0.1,
this.interactionEndFrictionCoefficient = 0.0000135});