flutter_sticky_and_expandable_list icon indicating copy to clipboard operation
flutter_sticky_and_expandable_list copied to clipboard

scroll_to_index

Open lcm1475 opened this issue 1 year ago • 4 comments

If I want to scroll to the 100th item the first time, it won't happen because the 100th item hasn't been rendered yet, right? Is there any solution? This library is great. I have given you a little reward

lcm1475 avatar Dec 21 '23 12:12 lcm1475

thank you. see this example,no perfect solution . https://github.com/tp7309/flutter_sticky_and_expandable_list/blob/master/example/lib/example_scroll_to_index.dart

tp7309 avatar Dec 22 '23 13:12 tp7309

我看了这个例子了,一个一个的跳转没问题,但是如果我想第一次就跳转到第100个是不行的 我就是在这个例子的基础上试的,我猜测应该是ListView的加载机制导致第100个还没有加载出来,所以跳不过去,这个问题有解决办法吗

lcm1475 avatar Dec 25 '23 02:12 lcm1475

搜一些基于scrollable_positioned_list 做的库吧,能达到要求。

tp7309 avatar Dec 26 '23 04:12 tp7309

好 谢谢

lcm1475 avatar Dec 26 '23 06:12 lcm1475