fluttercommunity / responsive_scaffold

Responsive Scaffold - On mobile it shows a list and pushes to details and on tablet it shows the List and the selected item. Maintainer: @rodydavis
https://fluttercommunity.github.io/responsive_scaffold/
MIT License
360 stars 42 forks source link

How to add a ScrollController to detect if I scroll to bottom at list in ResponsiveListScaffold? #35

Closed polpenyarrojaNik closed 3 years ago

polpenyarrojaNik commented 3 years ago

Hi there!

I am working on an application and I want to implement your packages, but I have a question about how to do it.

When I navigate to the page, I load 20 items from API first and then if scroll to bottom of the list, load next 20 items and add them to bottom of the list.

Now, I do it with ListView.builder () and ScrollController with a listener that when the listener detects that user scrolls to bottom of list view, it throws a method to load the following items, but in ResponsiveListScaffold it does not have a controller of displacement, How can I make for what if I scroll to bottom of the list, lauch a method to load following items?

Thanks for all.