Skip to main content

ScrollArea

Function ScrollArea 

Source
pub fn ScrollArea(
    modifier: Modifier,
    state: Rc<ScrollState>,
    content: View,
) -> View
Expand description

Scroll container with inertia, like verticalScroll.

Content is wrapped so it:

  • does not flex-shrink,
  • is at least as wide/tall as the viewport,
  • grows with content on the scroll axis.

Prefer a stable remember_scroll_state(key) and put scope! / repaint_boundary around expensive list bodies.