ScrollbarState
State for controlling and managing the scrollbar's properties and activity. This state is responsible for tracking the scrollbar's position, length, and drag activity.
See also
Properties
contentLength is the total length of the scrollable content.
Returns the expanded bounds for detecting drag interactions on the scrollbar.
indicatorBounds Defines the rectangular bounds of the scrollbar's indicator (thumb).
Returns the length of the indicator (thumb) based on the scrollbar's orientation.
indicatorOffset A mutable state representing the offset of the scrollbar's indicator (thumb). The offset indicates the current position of the thumb along the scrollbar.
isScrollbarDragActive is a state indicating whether the scrollbar is currently being dragged by the user. This state can be used to alter the UI, such as highlighting the scrollbar when active.
viewPortLength The length of the viewport (visible area) of the scrollable container.