PdfViewer constructor

const PdfViewer({
  1. Key? key,
  2. required PdfViewerController controller,
  3. bool showNavigationControls = true,
  4. bool showPageIndicator = true,
  5. bool enableZoom = true,
  6. double minScale = 0.5,
  7. double maxScale = 4.0,
  8. Color backgroundColor = const Color(0xFFEEEEEE),
  9. double pageSpacing = 16.0,
  10. bool continuousScroll = true,
  11. Widget pageBuilder(
    1. BuildContext context,
    2. int pageIndex,
    3. Widget pageWidget
    )?,
  12. void onPageChanged(
    1. int pageIndex
    )?,
})

Implementation

const PdfViewer({
  super.key,
  required this.controller,
  this.showNavigationControls = true,
  this.showPageIndicator = true,
  this.enableZoom = true,
  this.minScale = 0.5,
  this.maxScale = 4.0,
  this.backgroundColor = const Color(0xFFEEEEEE),
  this.pageSpacing = 16.0,
  this.continuousScroll = true,
  this.pageBuilder,
  this.onPageChanged,
});