ScerIO / packages.flutter

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

padding on pages (space between pages it self) #254

Open lcyper opened 2 years ago

lcyper commented 2 years ago

Describe the solution you'd like add padding parameter

Describe alternatives you've considered render page methot return widget so we can to surround whit padding widget

Additional context be able to place a space between one page and the next.

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