haze Child
fun Modifier.hazeChild(state: HazeState, shape: Shape = RectangleShape, style: HazeStyle = HazeStyle.Unspecified): Modifier
Mark this composable as being a Haze child composable.
This will update the given HazeState whenever the layout is placed, enabling any layouts using Modifier.haze to blur any content behind the host composable.
Parameters
shape
The shape of the content. This will affect the the bounds and outline of the content. Please be aware that using non-rectangular shapes has an effect on performance, since we need to use path clipping.
fun Modifier.hazeChild(state: HazeState, shape: Shape = RectangleShape, tint: Color = Color.Unspecified, blurRadius: Dp = Dp.Unspecified, noiseFactor: Float = Float.MIN_VALUE): Modifier
Deprecated
Deprecated. Replaced with new HazeStyle object
Replace with
hazeChild(state, shape, HazeStyle(tint, blurRadius, noiseFactor))Content copied to clipboard