Function

WindowInsets

Create a WindowInsets with fixed dimensions of 0 on all sides.

WindowInsets

Source set: Common
public fun WindowInsets(): WindowInsets

Create a WindowInsets with fixed dimensions of 0 on all sides.

WindowInsets

Source set: Common
public fun WindowInsets(
    left: Int = 0,
    top: Int = 0,
    right: Int = 0,
    bottom: Int = 0,
): WindowInsets

Create a WindowInsets with fixed dimensions.

WindowInsets

Source set: Common
public fun WindowInsets(
    left: Dp = 0.dp,
    top: Dp = 0.dp,
    right: Dp = 0.dp,
    bottom: Dp = 0.dp,
): WindowInsets

Create a WindowInsets with fixed dimensions, using Dp values.

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: