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. Color backgroundNavigation = Colors.white,
  13. Color iconNavigation = Colors.black,
  14. Color? backgorundPickPage,
  15. Color? iconPickPage,
  16. Widget navigationBuilder(
    1. BuildContext,
    2. int? pageNumber,
    3. int? totalPages,
    4. void jumpToPage({
      1. int page,
      }),
    5. void animateToPage({
      1. int? page,
      }),
    )?,
  17. PageController? controller,
  18. IndicatorPosition indicatorPosition = IndicatorPosition.topRight,
  19. int? zoomSteps,
  20. double? minScale,
  21. double? maxScale,
  22. 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.backgroundNavigation = Colors.white, this.iconNavigation = Colors.black, this.backgorundPickPage, this.iconPickPage, this.navigationBuilder, this.controller, this.indicatorPosition = IndicatorPosition.topRight, this.zoomSteps, this.minScale, this.maxScale, this.panLimit}) : super(key: key);