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

Attribute currentPageNumber is not incremented on last small page #141

@HeropolisDa2ny

Description

@HeropolisDa2ny

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();
      }
    });
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions