ScrollbarLayout
Layout configuration of the scrollable container, providing information on the dimensions, orientation, and content offset.
See also
Constructors
Properties
The total length of the scrollable content in the primary scroll direction, which may exceed the viewport length if content is scrollable.
The current offset of the content from the start of the scrollable area, in pixels. Represents how far the content has been scrolled in the primary direction.
The layout direction of the container, specifying whether the content flows left-to-right or right-to-left. See LayoutDirection for available options.
The orientation of the scrollable content, which can be either horizontal or vertical. See Orientation for available options.
The opacity of the scrollbar, where 0 is fully transparent and 1 is fully opaque. Used to control the visibility of the scrollbar during interactions.
The length of the viewport along the cross-axis (e.g., width for vertical scrolling, height for horizontal). Useful for determining the scrollbar's cross-axis positioning.
The length of the viewport in the primary scroll direction (e.g., height for vertical scrolling, width for horizontal). This represents the visible area of the content.
Functions
Calculates indicator length required for the given scrollbarLength and contentLength within the given minimumIndicatorLength and maximumIndicatorLength values
Calculates the offset position of the scrollbar indicator (thumb) within the scrollbar track. This offset helps to position the indicator correctly based on the scrollbar's and indicator's lengths.