PdfViewPinch constructor
const
PdfViewPinch({
- required PdfControllerPinch controller,
- void onPageChanged(
- int page
- void onDocumentLoaded(
- PdfDocument document
- void onDocumentError(
- Object error
- PdfViewPinchBuilders builders = const PdfViewPinchBuilders<DefaultBuilderOptions>(options: DefaultBuilderOptions()),
- Axis scrollDirection = Axis.vertical,
- double padding = 10,
- BoxDecoration backgroundDecoration = const BoxDecoration(color: Color.fromARGB(255, 250, 250, 250), boxShadow: [BoxShadow(color: Color(0x73000000), blurRadius: 4, offset: Offset(2, 2))]),
- Key? key,
Implementation
const PdfViewPinch({
required this.controller,
this.onPageChanged,
this.onDocumentLoaded,
this.onDocumentError,
this.builders = const PdfViewPinchBuilders<DefaultBuilderOptions>(
options: DefaultBuilderOptions(),
),
this.scrollDirection = Axis.vertical,
this.padding = 10,
this.backgroundDecoration = const BoxDecoration(
color: Color.fromARGB(255, 250, 250, 250),
boxShadow: [
BoxShadow(
color: Color(0x73000000),
blurRadius: 4,
offset: Offset(2, 2),
),
],
),
Key? key,
}) : super(key: key);