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. Widget numberPickerConfirmWidget = const Text('OK'),
  8. bool showIndicator = true,
  9. bool showPicker = true,
  10. bool showNavigation = true,
  11. bool enableSwipeNavigation = true,
  12. PDFViewerTooltip tooltip = const PDFViewerTooltip(),
  13. Widget navigationBuilder(
    1. BuildContext,
    2. int? pageNumber,
    3. int? totalPages,
    4. void jumpToPage({
      1. int page,
      }),
    5. void animateToPage({
      1. int? page,
      }),
    )?,
  14. PageController? controller,
  15. IndicatorPosition indicatorPosition = IndicatorPosition.topRight,
  16. int? zoomSteps,
  17. double? minScale,
  18. double? maxScale,
  19. double? panLimit,
  20. Widget? progressIndicator,
  21. Color? pickerButtonColor,
  22. Color? pickerIconColor,
  23. ValueChanged<int>? onPageChanged,
  24. Color? backgroundColor,
  25. Widget indicatorBuilder(
    1. BuildContext,
    2. int? pageNumber,
    3. int? totalPages
    )?,
  26. dynamic onZoomChanged(
    1. double
    )?,
})

Implementation

PDFViewer({
  Key? key,
  required this.document,
  this.scrollDirection,
  this.lazyLoad = true,
  this.indicatorText = Colors.white,
  this.indicatorBackground = Colors.black54,
  this.numberPickerConfirmWidget = const Text('OK'),
  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,
  this.progressIndicator,
  this.pickerButtonColor,
  this.pickerIconColor,
  this.onPageChanged,
  this.backgroundColor,
  this.indicatorBuilder,
  this.onZoomChanged,
}) : super(key: key);