infinite_scroll_view

Last updated:

0 purchases

infinite_scroll_view Image
infinite_scroll_view Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.