Last updated:
0 purchases
pagination scroll view
Pagination Scroll View #
Pagination Scroll View Widget for Flutter
Getting Started #
Add this to your pubspec.yaml:
dependencies:
pagination_scroll_view: ^1.1.2
copied to clipboard
Usage #
Basic usage of this widget is as below:
PaginationScrollView #
PaginationScrollView(
key: const Key("pagination_scroll_view"),
pageChanged: (page) {
setState(() {
_itemCount += 20;
});
},
threshold: 0.8,
scrollOptions: const ScrollOptions(
physics: BouncingScrollPhysics(),
),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Container(
height: 200,
color: Colors.red,
child: const Center(
child: Text("Header"),
),
),
ListView.builder(
physics: const NeverScrollableScrollPhysics(),
shrinkWrap: true,
itemBuilder: (context, index) {
return ListTile(
title: Text("Item $index"),
);
},
itemCount: _itemCount,
),
],
),
);
copied to clipboard
Contribution #
We welcome contributions! Feel free to open issues or submit pull requests.
License #
This package is licensed under the Apache V2 License - see the LICENSE file for details.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.