Function

minSize

Constrains the minimum size (width and height) of the component.

minSize

Source set: Common
public fun MinSizeScope.minSize(size: DpSize)

Constrains the minimum size (width and height) of the component. The component's dimensions, including padding, will be at least these values.

This property is not inherited

Parameters

size The minimum size (DpSize).

minSize

Source set: Common
public fun MinSizeScope.minSize(width: Dp, height: Dp)

Constrains the minimum width and height of the component. The component's dimensions, including padding, will be at least these values.

This property is not inherited

Parameters

width The minimum width.
height The minimum height.
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: