PullToRefreshBox
PullToRefreshBox is a container that expects a scrollable layout as content and adds gesture support for manually refreshing when the user swipes downward at the beginning of the content. By default, it uses PullToRefreshDefaults.Indicator as the refresh indicator.
Parameters
whether a refresh is occurring
callback invoked when the user gesture crosses the threshold, thereby requesting a refresh.
the Modifier to be applied to this container
the state that keeps track of distance pulled
The default alignment inside the Box.
the indicator that will be drawn on top of the content when the user begins a pull or a refresh is occurring
the content of the pull refresh container, typically a scrollable layout such as LazyColumn or a layout using Modifier.verticalScroll