SwipeRefreshIndicator

@Composable()
fun SwipeRefreshIndicator(state: SwipeRefreshState, refreshTriggerDistance: Dp, modifier: Modifier = Modifier, fade: Boolean = true, scale: Boolean = false, arrowEnabled: Boolean = true, backgroundColor: Color = MaterialTheme.colors.surface, contentColor: Color = contentColorFor(backgroundColor), shape: Shape = MaterialTheme.shapes.small.copy(CornerSize(percent = 50)), refreshingOffset: Dp = 16.dp, largeIndication: Boolean = false, elevation: Dp = 6.dp)

Indicator composable which is typically used in conjunction with SwipeRefresh.

Parameters

state

The SwipeRefreshState passed into the SwipeRefreshindicator block.

modifier

The modifier to apply to this layout.

fade

Whether the arrow should fade in/out as it is scrolled in. Defaults to true.

scale

Whether the indicator should scale up/down as it is scrolled in. Defaults to false.

arrowEnabled

Whether an arrow should be drawn on the indicator. Defaults to true.

backgroundColor

The color of the indicator background surface.

contentColor

The color for the indicator's contents.

shape

The shape of the indicator background surface. Defaults to CircleShape.

largeIndication

Whether the indicator should be 'large' or not. Defaults to false.

elevation

The size of the shadow below the indicator.