Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination difficulty #452

Open
MarceloRab opened this issue Jan 8, 2025 · 2 comments
Open

Pagination difficulty #452

MarceloRab opened this issue Jan 8, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@MarceloRab
Copy link

Thank you for this excellent work.

I have problems with pagination. I click to change the page and if there is no data on the device, I request it from the database. It is not a problem to click on the top arrows. However, it is very cool to change by dragging the screen. However, I could not find the horizontal listen of the pageController to call a new page (new month) in the database. I ended up using => pageViewPhysics: NeverScrollableScrollPhysics().

How can I capture the horizontal movement of the page turn to make the request to the database?

@shubham-jitiya-simform shubham-jitiya-simform added the enhancement New feature or request label Jan 8, 2025
@MarceloRab
Copy link
Author

MarceloRab commented Jan 9, 2025

I did it, guys!. 😁

Returns a callback for the end of the pages. Either to the beginning or to the end. The user drags from the last page or the first and receives a callback for the pagination.

Please check here.

Fork:

Consider including in the package.

@MarceloRab
Copy link
Author

Solution suggested and tested multiple times.

Pull Request - #453

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants