PdfViewerParams constructor
const
PdfViewerParams({
- int? pageNumber,
- double? padding,
- LayoutPagesFunc? layoutPages,
- BuildPageContentFunc? buildPagePlaceholder,
- BuildPageContentFunc? buildPageOverlay,
- BoxDecoration? pageDecoration,
- Axis scrollDirection = Axis.vertical,
- PanAxis panAxis = PanAxis.free,
- @Deprecated('Use panAxis instead. ' 'This feature was deprecated after flutter sdk v3.3.0-0.5.pre.') bool? alignPanAxis,
- 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,
- OnClickOutsidePageViewer? onClickOutSidePageViewer,
Initializes the parameters.
Implementation
const PdfViewerParams(
{this.pageNumber,
this.padding,
this.layoutPages,
this.buildPagePlaceholder,
this.buildPageOverlay,
this.pageDecoration,
this.scrollDirection = Axis.vertical,
PanAxis panAxis = PanAxis.free,
@Deprecated(
'Use panAxis instead. '
'This feature was deprecated after flutter sdk v3.3.0-0.5.pre.',
)
bool? alignPanAxis,
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,
this.onClickOutSidePageViewer})
: panAxis = alignPanAxis == true ? PanAxis.aligned : panAxis;