Scroll View

It provides a scrollable container for a single child view. The scroll direction can be vertical (default) or horizontal. Supports customization of frame, position, border, background color, and padding.

Constructors

ScrollView

A ScrollView can either be horizontal or vertical. By default, it is vertical.


Methods

MethodDescription
Axis(axis ScrollViewAxis)Axis sets the scroll direction (vertical or horizontal).
BackgroundColor(color Color)BackgroundColor sets the background color of the scroll view.
Border(border Border)Border applies a border around the scroll view.
Frame(frame Frame)Frame sets the layout frame for the scroll view.
Padding(padding Padding)Padding sets the inner padding of the scroll view.
Position(position Position)Position sets the alignment of the content inside the scroll view.
ScrollToView(animation ScrollAnimation, scrollToView string)

Related