Skip to main content

remember_node_size

Function remember_node_size 

Source
pub fn remember_node_size() -> NodeSize
Expand description

Follows one node’s measured size, recorded as read. Compose has no single equivalent; it is onSizeChanged with the class judgement made for you.

Give the token to the node with Modifier.observe_size(size.token()). Nothing is measured until a node carries it, and the composable reading it runs again only when the node’s size class changes.