slint
slint copied to clipboard
feature: infinite list
Infinite list is a commonly used component in UI development, but Slint doesn't have any standard support for it (or I looked for the wrong keyword?)
Please add it to standard widgets if possible.
Support for infinite lists is something that I think mostly belongs into a custom model implementation. But the ListView
may need to communicate to the model that the end of the current list was reached (or maybe soon before that), so that the model can grow as needed, for example by fetching more data from the network.
I presume that the official support of infinity virtual list can be pretty beneficial to the developers' experience, as it's not easy to implement it by the developer itself at far as my investigation. also, it seems that there is no such thing like npm for slint, so even one developer implemented it, it is hard to share it with other developers.
The problem is that I found it difficult to implement virtual list in the current version of slint, especially for infinite list that can scroll both up and down(which is what I'm now attempting to implement) ,as some essential stated of implementing it, like height of items, and current total height is not exposed to the developers. by the way, some essential functionalities for implementing virtual list seem to be missing, like optional instantiation of child components.