It currently expects children to be collected in sequential order.
While developing the dynamic_layouts package in flutter/packages, @DavBot02 and @snat-s created grid layout patterns that allowed children to deviate from sequential order.
This did not allow for proper efficient garbage collection of leading children as their layouts were used to create more and more complex layouts.
Because of this, the leading children are not currently collected there in order to maintain the layout.
We should consider:
- updating the dynamic_layouts package to cache the layout of preceding tiles, so some of them can be garbage collected. That way as user's scroll back up, the tiles can be replaced where they belong
- or, consider a new garbage collection option to pick children ad hoc.
It currently expects children to be collected in sequential order.
While developing the dynamic_layouts package in flutter/packages, @DavBot02 and @snat-s created grid layout patterns that allowed children to deviate from sequential order.
This did not allow for proper efficient garbage collection of leading children as their layouts were used to create more and more complex layouts.
Because of this, the leading children are not currently collected there in order to maintain the layout.
We should consider: