ScerIO / packages.flutter

👨‍💻 Plugins and packages for Flutter framework
https://pub.dev/publishers/serge.software/packages
MIT License
446 stars 428 forks source link

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

Open albertbxl opened 4 years ago

albertbxl commented 4 years ago
image

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

KarlKl commented 3 years ago

+1

danielWagnerr commented 3 years ago

+1

lcyper commented 2 years ago

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'), ), );