LoadingIndicator

@Composable
fun LoadingIndicator(state: PullToRefreshState, isRefreshing: Boolean, modifier: Modifier = Modifier, containerColor: Color = this.loadingIndicatorContainerColor, color: Color = this.loadingIndicatorColor, elevation: Dp = LoadingIndicatorElevation, maxDistance: Dp = IndicatorMaxDistance)

A LoadingIndicator indicator for PullToRefreshBox.

Parameters

state

the state of this modifier, will use state.distanceFraction and maxDistance to calculate the offset

isRefreshing

whether a refresh is occurring

modifier

the modifier applied to this layout

containerColor

the container color of this indicator

color

the color of this indicator

elevation

the elevation of this indicator

maxDistance

the max distance the indicator can be pulled down before a refresh is triggered on release