I have implemented this sdk in my flutter ebook reader mobile application.
I want to navigate to specific page on user-input.
For this I am using readerContext.execute(GoToPageCommand(index)); function where index is user-specific page index.
It works well for the epub file where every chapter has single page,
but In case where chapter has multiple pages, it only redirects to first page of that chapter instead of specific page.
I saw the percentage calculation for findSpineItemIndex in GoToPageCommandProcessor, I want to navigate to specific page index.
Please provide solution.
I have implemented this sdk in my flutter ebook reader mobile application. I want to navigate to specific page on user-input. For this I am using readerContext.execute(GoToPageCommand(index)); function where index is user-specific page index.
It works well for the epub file where every chapter has single page, but In case where chapter has multiple pages, it only redirects to first page of that chapter instead of specific page.
I saw the percentage calculation for findSpineItemIndex in GoToPageCommandProcessor, I want to navigate to specific page index. Please provide solution.