pdfrx
pdfrx copied to clipboard
layoutPages isn't enough
Hi I am trying to make a book-like pdf viewer. these are my requirements for the viewer
- horizontally scrollable with snapping event
- two pages should be viewed fully (two pages will be centered).
- when the user taps right for example, pdf viewer should scroll automatically to next page.
I did figure out building it by utilizing PdfDocumentViewBuilder However, when I had to implement the third requirement(scrolling automatically), it seems that I have to use PdfViewerController(I know this controller is PdfViewer based).
But as far as I know, if I change to PdfViewer, parameter for layoutPage doesn't work with snapping event..
anyway image down below, is what I have made so far.
I need to implement goToPage.. But it is impossible if I use PdfDocumentViewerBuilder. This is so frustrating..