Open lcyper opened 2 years ago
@lcyper Currently, PdfDocumentLoader does not have controller. Only PdfViewer has it.
because that i put: "Feature request" thanks for creating and sharing this package!
OK, then, what is your purpose for the controller? PdfDocumentLoader is all-purpose widget and normally you can controll anything without such controller.
first of all thank you for your response. 1) I want to be able to zoom in the page (like the other class does using interactiveViewer) (so I can also implement the doubleTap). 2) i want to know which page i'm on. 3) I want to be able to go to a specific page.
this class has a much higher sheet load than the other class, so I want to see if I can use this class.
I also want to be able to implement widgets above and below the pdf, it also happens to me that with the setState the pdf (widget) is redrawn and flashes.
If it is possible to add the controller or show me how to do it, thank you.
I have tried to do it with the interactiveViewer widget but when I zoom the pan is blocked because the object goes out of the screen, I have tried several things but without success, I also tried several packages and yours was the one I liked the most.
Thanks again, I look forward to hearing from you.
please add controller parametter on PdfDocumentLoader like:
PdfDocumentLoader.openAsset( 'assets/hello.pdf', pageNumber: 1, viewerController: widget.pdfController, // <- add pageBuilder: (context, textureBuilder, pageSize) => textureBuilder(), )