Scaled

EN A Stable class that allows defining custom dimensions based on screen qualifiers (UiModeType, Width, Height, Smallest Width).

The dp value is resolved at composition (Compose) and uses the base value or a custom value, applying dynamic scaling at the end.

PT Classe Stable que permite a definição de dimensões customizadas baseadas em qualificadores de tela (UiModeType, Largura, Altura, Smallest Width).

O valor dp é resolvido na composição (Compose) e usa o valor base ou um valor customizado, aplicando o dimensionamento dinâmico no final.

Constructors

Link copied to clipboard
constructor(initialBaseDp: Dp)

Properties

Link copied to clipboard
val hdp: Dp

EN The final Dp value that is resolved in Compose.

Link copied to clipboard
val sdp: Dp

EN The final Dp value that is resolved in Compose.

Link copied to clipboard
val wdp: Dp

EN The final Dp value that is resolved in Compose.

Functions

Link copied to clipboard
fun screen(type: UiModeType, customValue: Dp): Scaled

EN Priority 2: UiModeType qualifier (e.g., TELEVISION, WATCH).

fun screen(type: UiModeType, customValue: Int): Scaled

EN Priority 2: UiModeType qualifier (e.g., TELEVISION, WATCH). This is an overload that accepts an Int for customValue.

fun screen(type: DpQualifier, value: Int, customValue: Dp): Scaled

EN Priority 3: Dp qualifier (sw, h, w) without UiModeType restriction.

fun screen(type: DpQualifier, value: Int, customValue: Int): Scaled

EN Priority 3: Dp qualifier (sw, h, w) without UiModeType restriction. This is an overload that accepts an Int for customValue.

fun screen(uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Int, customValue: Dp): Scaled

EN Priority 1: Most specific qualifier - Combines UiModeType AND Dp Qualifier (sw, h, w).

fun screen(uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Int, customValue: Int): Scaled

EN Priority 1: Most specific qualifier - Combines UiModeType AND Dp Qualifier (sw, h, w). This is an overload that accepts an Int for customValue.