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
626 stars 213 forks source link

Can I change "No items found The list is currently empty." to another? #262

Closed wiany11 closed 1 year ago

wiany11 commented 1 year ago

Thanks for the beautiful widget.

I wonder if I can change the widget for the empty list

No items found The list is currently empty

to another one? For example,

PagedListView<int, ...>(
  scrollController: ...,
  pagingController: ...,
  builderDelegate: PagedChildBuilderDelegate<...>(
    itemBuilder: (context, item, index) => ...(...),
    emptyListBuilder: (context) => AnotherWidget(...),
  ),
)
lucasdidur commented 1 year ago

If you search for 'No items found' will find a noItemsFoundIndicatorBuilder: (_) => NoItemsFoundIndicator(), inside of builderDelegate