PdfViewer constructor
const
PdfViewer({
- Key? key,
- required PdfViewerController controller,
- bool showPageIndicator = true,
- bool enableZoom = true,
- double minScale = 0.5,
- double maxScale = 4.0,
- Color backgroundColor = const Color(0xFFEEEEEE),
- double pageSpacing = 16.0,
- bool continuousScroll = true,
- Widget pageBuilder(
- BuildContext context,
- int pageIndex,
- Widget pageWidget
- void onPageChanged(
- 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,
});