🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

MaxSizeScope

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

Source set: Common
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.

Content updated: