Compose Modifier

depthEffect

Renders shadows for the provided depthEffect.

depthEffect

Source set: Android
public fun Modifier.depthEffect(depthEffect: DepthEffect?, shape: Shape): Modifier

Renders shadows for the provided depthEffect.

Parameters

depthEffect Depth effect to render shadows for. If null, no shadows will be rendered.
shape Shape of the shadows
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: