PDFViewer constructor

PDFViewer({
  1. Key? key,
  2. required PDFDocument document,
  3. Axis? scrollDirection,
  4. bool lazyLoad = true,
  5. Color indicatorText = Colors.white,
  6. Color indicatorBackground = Colors.black54,
  7. bool showIndicator = true,
  8. bool showPicker = true,
  9. bool showNavigation = true,
  10. bool enableSwipeNavigation = true,
  11. PDFViewerTooltip tooltip = const PDFViewerTooltip(),
  12. Widget navigationBuilder(
    1. BuildContext,
    2. int? pageNumber,
    3. int? totalPages,
    4. void jumpToPage({
      1. int page,
      }),
    5. void animateToPage({
      1. int? page,
      }),
    )?,
  13. PageController? controller,
  14. IndicatorPosition indicatorPosition = IndicatorPosition.topRight,
  15. int? zoomSteps,
  16. double? minScale,
  17. double? maxScale,
  18. double? panLimit,
})

Implementation

PDFViewer(
    {Key? key,
    required this.document,
    this.scrollDirection,
    this.lazyLoad = true,
    this.indicatorText = Colors.white,
    this.indicatorBackground = Colors.black54,
    this.showIndicator = true,
    this.showPicker = true,
    this.showNavigation = true,
    this.enableSwipeNavigation = true,
    this.tooltip = const PDFViewerTooltip(),
    this.navigationBuilder,
    this.controller,
    this.indicatorPosition = IndicatorPosition.topRight,
    this.zoomSteps,
    this.minScale,
    this.maxScale,
    this.panLimit})
    : super(key: key);