EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
623 stars 210 forks source link

Feature Request: Add a way to Override Circular Progress Indicator #220

Closed ghost closed 1 year ago

ghost commented 2 years ago

I need a native indicator for iOS, i tried using PagedSliverBuilder , i thought this would give me flexibility to override but when i check it there is no way to override it...

This is the method _firstPageProgressIndicatorBuilder

this is the class FirstPageProgressIndicator that simple loads a circularProgress Indicator.

Fauzdar1 commented 1 year ago

You can override the progress indicator using builderDelegate:

PagedListView(
  pagingController: _pagingController,
  builderDelegate: PagedChildBuilderDelegate<YourModel>(
    //Visible when the list is empty/first load
    firstPageProgressIndicatorBuilder: (context) =>
      const CustomProgressIndicator(),
    //Visible when loading more items at the bottom of the list
    newPageProgressIndicatorBuilder: (context) =>
      const CustomProgressIndicator(),
    ...
  ),
),