Compose Unstyled 2.0 is out! Check the official announcement blog ->
Composable Function

RemoteCircularProgressIndicator

Material Design circular progress indicator.

RemoteCircularProgressIndicatorAnimatedSample

@RemoteComposable
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
public fun RemoteCircularProgressIndicatorAnimatedSample(
    modifier: RemoteModifier = RemoteModifier.size(150.rdp)
) {
    val progress = rememberMutableRemoteFloat { 0.25f.rf }
    val animatedProgress = animateRemoteFloat(progress, 0.25f)
    val toggleAction = ValueChange(progress, ((progress + 0.25f) % 1f).createReference())
    RemoteCircularProgressIndicator(progress = animatedProgress, modifier.clickable(toggleAction))
}

RemoteCircularProgressIndicatorSample

@RemoteComposable
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
public fun RemoteCircularProgressIndicatorSample(modifier: RemoteModifier = RemoteModifier) {
    RemoteCircularProgressIndicator(modifier = modifier, progress = 0.75f.rf)
}

Last updated: