Opacity

A modifier used for applying opacity to a composable

View in Playground

Constructors

drawOpacity(0.2f)

Example

Box(
    modifier = Modifier.preferredSize(100.dp, 100.dp).drawOpacity(0.2f),
    backgroundColor = Color.Green
)

Opacity