Interface

MaxSizeScope

An interface that introduces maxWidth and maxHeight properties to a Style receiver scope.

Source set: Common
@Deprecated(
    DeprecatedStyleScope,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public interface MaxSizeScope

An interface that introduces maxWidth and maxHeight properties to a Style receiver scope.

Functions

maxWidth

Source set: Common
public fun maxWidth(value: Dp)

Constrains the maximum width of the component. The component's width, including padding, will be at most this value.

This property is not inherited

Parameters

value The maximum width.

maxHeight

Source set: Common
public fun maxHeight(value: Dp)

Constrains the maximum height of the component. The component's height, including padding, will be at most this value.

This property is not inherited

Parameters

value 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: