Last updated:
0 purchases
infinite scroll view
Infinite Scoll View #
A flutter library for scroll views that can be scrolled in either directions infinitely.
Getting started #
To install package go to your terminal and run
flutter pub add infinite_scroll_view
copied to clipboard
or add infinite_scroll_view to your pubspec.yaml
Usage #
Using InfinitePageView
InfinitePageView(
onPageChanged: (index) {
print('$index');
},
itemBuilder: (context, index) {
return Text("Page $index");
},
)
copied to clipboard
Use a controller to take control over InfinitePageView
final InfinitePageController controller = InfinitePageController();
// ...
InfinitePageView(
controller: controller,
itemBuilder: (context, index) {
return Text("Page $index");
},
)
copied to clipboard
How it works #
InfinitePageView #
Works by creating a PageView with 2 pages which in turn are PageViews. Both PageViews are respectively controlled under the hood to get the desired working.
TODO #
Create InfiniteListView
Constraints #
InfinitePageView does not support viewport fraction
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.