hazeEffect
inline fun Modifier.hazeEffect(state: HazeState, style: HazeBlurStyle, crossinline block: HazeEffectScope.() -> Unit = {}): Modifier
Deprecated
Style parameter moved to blurEffect {} block. See migration guide.
Replace with
import dev.chrisbanes.haze.hazeEffect
import dev.chrisbanes.haze.blur.blurEffect
Content copied to clipboard
hazeEffect(state) { blurEffect { style = style } }Content copied to clipboard
Migration helper overload that accepts a style parameter directly.
In v1, you could write:
Modifier.hazeEffect(state, style = HazeMaterials.thin())Content copied to clipboard
In v2, this becomes:
Modifier.hazeEffect(state) {
blurEffect {
style = HazeMaterials.thin()
}
}Content copied to clipboard
This overload supports the v1 pattern during migration.