Property

LocalAbsoluteElevation

CompositionLocal containing the current absolute elevation provided by Surface components.

Source set: Common
public val LocalAbsoluteElevation: ProvidableCompositionLocal<Dp> = compositionLocalOf { 0.dp }

CompositionLocal containing the current absolute elevation provided by Surface components. This absolute elevation is a sum of all the previous elevations. Absolute elevation is only used for calculating elevation overlays in dark theme, and is not used for drawing the shadow in a Surface. See ElevationOverlay for more information on elevation overlays.

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: