infinite_scroll_pagination icon indicating copy to clipboard operation
infinite_scroll_pagination copied to clipboard

Feature Request: Add a way to Override Circular Progress Indicator

Open uriah-we opened this issue 2 years ago • 1 comments

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.

uriah-we avatar Sep 04 '22 22:09 uriah-we

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(),
    ...
  ),
),

Fauzdar1 avatar Sep 14 '22 17:09 Fauzdar1