PdfViewPinch constructor
const
PdfViewPinch({
- required PdfControllerPinch controller,
- void onPageChanged(
- int page
- void onDocumentLoaded(
- PdfDocument document
- void onDocumentError(
- Object error
- Widget? documentLoader,
- Widget? pageLoader,
- Widget errorBuilder(
- Exception error
- Axis scrollDirection = Axis.vertical,
- bool pageSnapping = true,
- double padding = 10,
- ScrollPhysics? physics,
- BoxDecoration? backgroundDecoration = const BoxDecoration(),
- Duration loaderSwitchDuration = const Duration(seconds: 1),
- Key? key,
Implementation
const PdfViewPinch({
required this.controller,
this.onPageChanged,
this.onDocumentLoaded,
this.onDocumentError,
this.documentLoader,
this.pageLoader,
this.errorBuilder,
this.scrollDirection = Axis.vertical,
this.pageSnapping = true,
this.padding = 10,
this.physics,
this.backgroundDecoration = const BoxDecoration(),
this.loaderSwitchDuration = const Duration(seconds: 1),
Key? key,
}) : super(key: key);