Function

depthIn

Constrain the depth of the content to be between min dp and max dp as permitted by the incoming measurement constraints.

depthIn

Source set: Android
public fun SubspaceModifier.depthIn(
    min: Dp = Dp.Unspecified,
    max: Dp = Dp.Unspecified,
): SubspaceModifier

Constrain the depth of the content to be between min dp and max dp as permitted by the incoming measurement constraints. If the incoming constraints are more restrictive, the requested size will obey the incoming constraints and attempt to be as close as possible to the preferred size.

Parameters

min The minimum depth.
max The maximum depth.
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: