flutter_sticky_headers
flutter_sticky_headers copied to clipboard
What is the best practice on a large amount of items in content?
I use StickyHeader to make iOS-TableView-like UI and add Column of my widgets StickyHeader's content.
But I suppose that the bigger the size of widgets, the less its rendering performance.
Is there any ways like ListView.builder, which render just visible widgets instead of all ones?
Maybe related to #3.
@Masaokb Do you have any solution?
When ListView.builder is used with shrinkWrap: true, it all loses the on-demand rendering feature. In the end, it performs very inefficiently. Because shrinkWrap wants the ListView.builder to calculate all the children even if they are not on the screen.
I have tried putting SliverList with SliverChildBuilderDelegate inside the content property of StickyHeaderBuilder. However, it gave this error:
A RenderStickyHeader expected a child of type RenderBox but received a child of type RenderSliverList.
So as of now, I also wonder how we can improve this package to allow it to render tens of thousands children efficiently.