UPdfViewer constructor
const
UPdfViewer({
- required PdfViewerSource source,
- Key? key,
- int initialPageNumber = 1,
- double initialZoomLevel = 1.0,
- double maxZoomLevel = 3.0,
- PdfScrollDirection scrollDirection = PdfScrollDirection.vertical,
- bool enableAnnotations = true,
- bool enableTextSelection = true,
- void onPageChanged()?,
- void onZoomChanged()?,
- void onError(
- dynamic
- Widget? loadingIndicator,
- Widget? errorIndicator,
- bool showLoading = true,
- BoxConstraints? constraints,
- EdgeInsets padding = EdgeInsets.zero,
- PdfViewerController? controller,
- void onDocumentLoaded()?,
- void onDocumentLoadFailed()?,
- Widget? searchBar,
Implementation
const UPdfViewer({
required this.source,
super.key,
this.initialPageNumber = 1,
this.initialZoomLevel = 1.0,
this.maxZoomLevel = 3.0,
this.scrollDirection = PdfScrollDirection.vertical,
this.enableAnnotations = true,
this.enableTextSelection = true,
this.onPageChanged,
this.onZoomChanged,
this.onError,
this.loadingIndicator,
this.errorIndicator,
this.showLoading = true,
this.constraints,
this.padding = EdgeInsets.zero,
this.controller,
this.onDocumentLoaded,
this.onDocumentLoadFailed,
this.searchBar,
});