Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Attribute currentPageNumber is not incremented on last small page #141

Open
HeropolisDa2ny opened this issue Mar 19, 2024 · 0 comments
Open

Comments

@HeropolisDa2ny
Copy link

HeropolisDa2ny commented Mar 19, 2024

Hello,

Working with small page PDF makes me find a bug. Whenever I scroll down to the last page the current page number is not incremented to the last page number. However If I add 100 bottom padding and now scroll to the last page the current page number is incremented.

  @override
  void initState() {
    super.initState();

    _pdfViewerController.addListener(() {
      final hasRead = cubit.state.hasRead;

      if (_pdfViewerController.isReady &&
          _pdfViewerController.pageCount ==
              _pdfViewerController.currentPageNumber &&
          !hasRead) {
        cubit.updateHasReadDoc();
      }
    });
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant