Function

maxSize

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

maxSize

Source set: Common
@Deprecated(
    DeprecatedStyleProperty,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public fun MaxSizeScope.maxSize(size: DpSize)

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

This property is not inherited

Parameters

size The maximum size (DpSize).

maxSize

Source set: Common
@Deprecated(
    DeprecatedStyleProperty,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public fun MaxSizeScope.maxSize(width: Dp, height: Dp)

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

This property is not inherited

Parameters

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