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

padding on pages (space between pages it self)

Open lcyper opened this issue 3 years ago • 1 comments

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 avatar Dec 28 '21 17:12 lcyper

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