Skip to main content

LazyColumn

Function LazyColumn 

Source
pub fn LazyColumn(_: LazyColumnProps) -> Element
Expand description

A windowed list. The Host declares item_count and a stable key per item, and materialises exactly the range the Renderer last requested.

The read-ahead buffer belongs to the Renderer, which owns the scroll position and so knows how far ahead to ask. Widening the range here would break the Renderer’s placement: start is the global index of the first child it receives, and that is what lets it draw a real Compose LazyColumn of item_count items. The data stays in the Host, so scrolling back re-materialises an identical subtree.

§Props

For details, see the props struct definition.