glow
Applies a glowing effect around the composable.
This modifier draws a shadow layer behind the composable, creating a "glow" effect. The shape of the glow will match the rounded rectangle shape of the composable.
Return
A Modifier that applies the glow effect.
Parameters
The color of the glow.
The color of the container itself. This is drawn to provide a surface for the shadow to appear behind. Defaults to Color.White.
The corner radius for the rounded rectangle shape of both the container and the glow. Defaults to 0.dp for a sharp-cornered rectangle.
The blur radius of the glow. A larger value will create a more spread-out and softer glow. Defaults to 20.dp.
The alpha transparency of the glow. Defaults to 0.8f.
The horizontal offset of the glow. A positive value shifts the glow to the right, a negative value to the left. Defaults to 0.dp.
The vertical offset of the glow. A positive value shifts the glow downwards, a negative value upwards. Defaults to 0.dp.