packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

[native_pdf_view] How to change padding between page and another page?

Open albertbxl opened this issue 4 years ago • 3 comments

image

pls check red line callout, it is too large, how to modify margin, what should I do ?

albertbxl avatar Jun 10 '20 10:06 albertbxl

+1

KarlKl avatar Aug 27 '20 18:08 KarlKl

+1

danielWagnerr avatar Mar 17 '21 14:03 danielWagnerr

i resolve it by put minScale and initialScale to value <1. like "0.95"

PdfView( controller: _pdfController!, pageBuilder: ( Future<PdfPageImage> pageImage, int index, PdfDocument document, ) => PhotoViewGalleryPageOptions( imageProvider: PdfPageImageProvider( pageImage, index, document.id, ), minScale: PhotoViewComputedScale.contained * 0.95, // this maxScale: PhotoViewComputedScale.contained * 8.0, initialScale: PhotoViewComputedScale.contained * 0.95, // this heroAttributes: PhotoViewHeroAttributes(tag: '${document.id}-$index'), ), );

lcyper avatar Dec 28 '21 18:12 lcyper