pagination_scroll_view 1.1.2 pagination_scroll_view: ^1.1.2 copied to clipboard
Pagination Scroll View by azisanw19@gmail.com
Pagination Scroll View #
Pagination Scroll View Widget for Flutter
Getting Started #
Add this to your pubspec.yaml
:
dependencies:
pagination_scroll_view: ^1.1.2
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,
),
],
),
);
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.