ScrollbarConfig
Configuration for customizing the appearance and behavior of a scrollbar.
See also
Constructors
Properties
The animation specification for auto-hiding the scrollbar. If null, a default auto-hide animation is used. Defines timing and easing for fading out the scrollbar.
The border styling for the scrollbar track, such as color and thickness. See BorderStyle for details. Default is no border.
Specifies the corner radius of the scrollbar track, allowing rounded edges if desired. Default is half of barThickness, making it fully rounded if barThickness is greater than 0.
Defines the thickness of the scrollbar track, which is the stationary part along which the indicator moves. By default, this matches indicatorThickness for a consistent appearance.
The border styling for the scrollbar indicator, such as color and thickness. See BorderStyle for details. Default is no border.
The color of the scrollbar indicator. Can be a solid color or a gradient defined by ColorType. By default, this is set to a semi-transparent dark gray.
Defines the corner radius of the scrollbar indicator, giving it a rounded appearance if desired. By default, this is set to half the indicatorThickness, making it fully rounded if indicatorThickness is greater than 0.
Padding around the scrollbar indicator, providing space between the indicator and the track edges. Default is 0.dp.
Specifies the thickness of the scrollbar indicator (also known as the thumb), which is the part of the scrollbar that moves to indicate the current scroll position. Default is 8.dp.
Determines if the scrollbar indicator is draggable, allowing users to interact with it directly. Default is true.
Specifies the maximum length of the scrollbar indicator, preventing it from growing too large on short content. Default is Dp.Infinity, allowing the indicator to resize as needed.
Specifies the minimum length of the scrollbar indicator. This ensures the indicator remains visible even when content is long. Default is 24.dp.
Padding around the scrollbar as a whole. Allows adjusting spacing between the scrollbar and surrounding UI elements. Default is 0.dp for no additional padding.
If true, the scrollbar is always visible, even when not actively scrolling. Default is false, meaning the scrollbar will auto-hide when not in use.