最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to Implement Load More at the Top for a GridView with Dynamic Item Heights in Flutter? - Stack Overflow

programmeradmin3浏览0评论

I am trying to implement "load more" functionality at the top of a GridView with items of varying heights in Flutter. However, when I update the list of items after loading more, the scroll position resets to the top of the screen (position 0) instead of staying at the position of the item I was at before loading more items.

I attempted to use CustomScrollView, but it introduces a new issue: since the items have different heights, the slivers above may cause rendering gaps(as shown in the example image: enter link description here).

Has anyone encountered this issue or found a good solution for this? Any suggestions would be greatly appreciated.

Thank you!

发布评论

评论列表(0)

  1. 暂无评论