Closed ducky-z closed 3 weeks ago
It will only iterate over and observe the items in the cache and display area, and if you do not implement callbacks such as onObserve
and onObserveAll
, it will not observe the items.
If you implement these callbacks, you can also adjust the observation frequency by setting observeIntervalForScrolling
.
It will only iterate over and observe the items in the cache and display area, and if you do not implement callbacks such as
onObserve
andonObserveAll
, it will not observe the items.If you implement these callbacks, you can also adjust the observation frequency by setting
observeIntervalForScrolling
.
How can I customize "observeIntervalForScrolling"? I don't see in the documentation how to use it
How can I customize "observeIntervalForScrolling"? I don't see in the documentation how to use it
Oh, I find time to add it to the wiki. you can set it as follows.
observerController.observeIntervalForScrolling = Duration(milliseconds: 500);
Thank you very much.
Content
I find this library quite useful, and I'm using it to scroll to a specified index. However, I’m wondering, if I have a list with, say, 10,000 items and use a SliverList, will wrapping it in a ListViewObserver reduce the app’s performance for such a large list? Specifically, will it consume significant CPU or RAM resources, since it has to listen to continuous scrolling events?