ChipIconWithProgress

fun ChipIconWithProgress(modifier: Modifier = Modifier, icon: Paintable? = null, largeIcon: Boolean = false, progressIndicatorColor: Color = MaterialTheme.colors.primary, progressTrackColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.10f))

A default icon implementation to be used with a Chip that accepts an icon as slot. This implementation displays an icon with a circular progress indicator around it. The progress indicator is in an indeterminate state and spins indefinitely.

Parameters

modifier

Modifier to apply to this layout node.

icon

Image or icon to be displayed in the center of this view.

largeIcon

True if it should display the icon with in a large size.

placeholder

A Painter that is displayed while the icon image is loading.

progressIndicatorColor

The color of the progress indicator that is around the icon.

progressTrackColor

The color of the background for the progress indicator.


fun ChipIconWithProgress(progress: Float, modifier: Modifier = Modifier, icon: Paintable? = null, largeIcon: Boolean = false, progressIndicatorColor: Color = MaterialTheme.colors.primary, progressTrackColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.10f))

A default icon implementation to be used with a Chip that accepts an icon as slot. This implementation displays an icon with a circular progress indicator around it. The progress indicator express the proportion of completion of an ongoing task.

Parameters

progress

The progress of this progress indicator as a percentage where 0.0 represents no progress and 100.0 represents completion. Values outside of this range are coerced into the range 0..100F.

modifier

Modifier to apply to this layout node.

icon

Image or icon to be displayed in the center of this view.

largeIcon

True if it should display the icon with in a large size.

placeholder

A Painter that is displayed while the icon image is loading.

progressIndicatorColor

The color of the progress indicator that is around the icon.

progressTrackColor

The color of the background for the progress indicator.