pagination_scroll_view 1.1.2 copy "pagination_scroll_view: ^1.1.2" to clipboard
pagination_scroll_view: ^1.1.2 copied to clipboard

Pagination Scroll View by azisanw19@gmail.com

Pagination Scroll View #

Flutter Package Pub Points Popularity

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.

1
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Pagination Scroll View by azisanw19@gmail.com

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on pagination_scroll_view