The second Android 11 Developer Preview is now available, test it out and share your feedback.

Min

@Stable data class Min : LayoutModifier
kotlin.Any
   ↳ androidx.ui.layout.LayoutWidth.Min

Modifies the width of a Compose UI layout element to be at least minWidth wide if permitted by its parent.

This modifies the incoming Constraints provided by a layout element's parent. If the incoming constraints do not allow the modified size, the incoming constraints from the parent will restrict the final size.

Summary

Public constructors

<init>(minWidth: Dp)

Modifies the width of a Compose UI layout element to be at least minWidth wide if permitted by its parent.

Properties

Dp

Public constructors

<init>

Min(minWidth: Dp)

Modifies the width of a Compose UI layout element to be at least minWidth wide if permitted by its parent.

This modifies the incoming Constraints provided by a layout element's parent. If the incoming constraints do not allow the modified size, the incoming constraints from the parent will restrict the final size.

Properties

minWidth

val minWidth: Dp