marcglasberg / indexed_list_view

Flutter package: Similar to a ListView, but lets you programmatically jump to any item, by index.
BSD 2-Clause "Simplified" License
251 stars 21 forks source link

Infinite limitation #32

Closed juvanjan closed 3 years ago

juvanjan commented 3 years ago

Is there a way to get rid of infinite scrolling limitation?

I can limit negative side by setting minScrollExtent to 0. However I'm unable (perhaps simply too underexperianced) to calculate maxScrollExtent as I have a list of items with variable heights.

marcglasberg commented 3 years ago

No. An indexed_list_view is always infinite. It's out of the scope of this widget to do what you want.

This question has been asked many times.

AAverin commented 2 years ago

Out of scope, sure, but nothing prevents you from attaching onScrollChanged listener to your controller and limiting your scroll values there.

graemep-nz commented 7 months ago

@AAverin is it possible to suggest how to limit the scroll values with onScrollChanged.