PDFViewer constructor
const
PDFViewer({
- Key? key,
- required PDFDocument document,
- Axis? scrollDirection,
- bool lazyLoad = true,
- Color indicatorText = Colors.white,
- Color indicatorBackground = Colors.black54,
- Widget numberPickerConfirmWidget = const Text('OK'),
- bool showIndicator = true,
- bool showPicker = true,
- PDFViewerTooltip tooltip = const PDFViewerTooltip(),
- PageController? controller,
- IndicatorPosition indicatorPosition = IndicatorPosition.topRight,
- int? zoomSteps,
- double? minScale,
- double? maxScale,
- double? panLimit,
- Widget? progressIndicator,
- Color? pickerButtonColor,
- Color? pickerIconColor,
- ValueChanged<
int> ? onPageChanged,
Implementation
const 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,
}) : super(key: key);