binSaed / flutter_cached_pdfview

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

Once rotate the screen from verticle to horizon, the position of pdf runs away #66

Open jason19970210 opened 2 years ago

jason19970210 commented 2 years ago

Testing env : iOS 14.8 / Android 11

The bug only happening on Android devices.

Please take a look into this !! Thanks.

minhx3 commented 2 years ago

me too. when I change the orientation screen from portrait to landscape, it show blank screen: D/jniPdfium(18011): Init FPDF library D/jniPdfium(18011): Destroy FPDF library

binSaed commented 2 years ago

@jason19970210 @minhx3 this solutions will help https://github.com/endigo/flutter_pdfview/issues/9#issuecomment-621162440

jason19970210 commented 2 years ago

@AbdOoSaed

Hello there, I have check that method, but I have no idea how to deal with that pdfViewerKey shows in didChangeMetrics override function !!!

Could you help to make an simple sample for that implementation within example directory ? Thanks a lot for helping us !!

By the way, I really love your lib lol !!!

lcyper commented 2 years ago

@jason19970210 @minhx3 this solutions will help endigo/flutter_pdfview#9 (comment)

it is a work arround for orientation, but also on setState it goes blanc!

myselfuser1 commented 1 year ago

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