CircularIcon

fun CircularIcon(painter: Painter, modifier: Modifier = Modifier, backgroundColor: Color = MaterialTheme.colorScheme.secondary, enabled: Boolean = true, size: Dp = 40.dp, iconSize: Dp = 24.dp)

A circular icon with a background.

Parameters

painter

The painter to be used for the icon.

modifier

The modifier to be applied to the icon.

backgroundColor

The background color of the circle.

enabled

If false, the icon will be displayed in a disabled state.

size

The size of the circular background.

iconSize

The size of the icon inside the circle.


fun CircularIcon(imageVector: ImageVector, modifier: Modifier = Modifier, backgroundColor: Color = MaterialTheme.colorScheme.secondary, enabled: Boolean = true, size: Dp = 40.dp, iconSize: Dp = 24.dp)

A circular icon with a background.

Parameters

imageVector

The vector image to be used for the icon.

modifier

The modifier to be applied to the icon.

backgroundColor

The background color of the circle.

enabled

If false, the icon will be displayed in a disabled state.

size

The size of the circular background.

iconSize

The size of the icon inside the circle.