Function

defaultMinSize

Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the minWidth and minHeight constraints are only applied when the corresponding dimension has not been constrained by another modifier (e.g.

defaultMinSize

Source set: JvmAndAndroid
public fun RemoteModifier.defaultMinSize(
    minWidth: RemoteDp? = null,
    minHeight: RemoteDp? = null,
): RemoteModifier

Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the minWidth and minHeight constraints are only applied when the corresponding dimension has not been constrained by another modifier (e.g. width, height, size, or fillMaxWidth).

Parameters

minWidth The minimum width to be used if width is otherwise unconstrained.
minHeight The minimum height to be used if height is otherwise unconstrained.

Return

a RemoteModifier that constrains the default minimum size

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: