Open maxfrees opened 3 months ago
There is no initial index in SuperSliverList
. Right now you have to layout the SliverList at least once (for one frame) in order to jump to an item. This is something I'd want to figure out eventually but it's quite difficult since scroll offset estimation depends on viewport being available, which is only after first build.
I have a requirement. If I have 5000 options, I hope to use super_sliver_list to display them in the bottomSheet. How can I set the initial value so that the initial value can be displayed in the center?
If I have 5000 data, and if I set the initial value to 2000, I expect that when I open the bottomSheet, the 2000 th option will be centered