binSaed / flutter_cached_pdfview

Enhanced PDF view for Flutter.
https://pub.dev/packages/flutter_cached_pdfview
MIT License
121 stars 70 forks source link

PDF View changes pdf to center from full width on returning back in IOS #61

Open sherrychhabra51 opened 3 years ago

sherrychhabra51 commented 3 years ago

PDF View widget displays the pdf to full width by default but when we go to next screen and come back , the pdf is shown in center of pdf view rather than full width. Video is attached with this link where you can see on first page pdf was stretched to full width but after going to next screen and returning back it is set in center.

This is working fine on Android but only coming in IOS.

Plugin Version flutter_cached_pdfview: ^0.4.0-nullsafety

Steps to reproduce the behaviour:

  1. Load pdf in smaller view, you can see pdf stretching upto full width and height of pdf container
  2. Click on button to go to next screen
  3. Come back to previous page
  4. Pdf will be previewed in center

https://user-images.githubusercontent.com/12271877/126979886-1bac9b45-6fcc-4715-9989-6721167cfe2c.mov

nhat108 commented 3 years ago

@AbdOoSaed It's only center at first page and last page

myselfuser1 commented 1 year ago

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA