pdfrx
pdfrx copied to clipboard
Current page number = 1 whereas 2 pages are displayed (paysage mode)
If you have a PDF on paysage with a small amount of pages (like 2) the pageNumber or the onPageChanged will stay at 1 whereas you see all of the pages.
PdfViewer.data(
data,
controller: _controller,
sourceName: '',
params: PdfViewerParams(
margin: ClassSize.paddingPage,
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
enableTextSelection: true,
enableKeyboardNavigation: true,
onPageChanged: (page) => log(page.toString()),
),
)