Scaled

EN The main class for applying dynamic text scaling (Sp) with conditional logic. Allows defining specific Sp values for different screen configurations (UI mode, smallest width, height, width).

PT A classe principal para aplicar escalonamento dinâmico de texto (Sp) com lógica condicional. Permite a definição de valores Sp específicos para diferentes configurações de tela (modo de UI, largura mínima, altura, largura).

Constructors

Link copied to clipboard
constructor(initialBaseSp: TextUnit)

EN Secondary constructor to start the build chain.

Properties

Link copied to clipboard

EN The final TextUnit value that is resolved in Compose.

Link copied to clipboard

EN The final TextUnit value that is resolved in Compose.

Link copied to clipboard

EN The final TextUnit value that is resolved in Compose.

Link copied to clipboard

EN The final TextUnit value that is resolved in Compose.

Link copied to clipboard

EN The final TextUnit value that is resolved in Compose.

Link copied to clipboard

EN The final TextUnit value that is resolved in Compose.

Functions

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

EN Priority 2 rule: UI Mode only. Applicable if the UI mode matches.

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

EN Overload for screen that accepts an Int as customValue.

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

EN Priority 3 rule: DP Qualifier only. Applicable if the screen is greater than or equal to the qualifier value.

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

EN Priority 1 rule: Combination of UI Mode and DP Qualifier. Applicable if the UI mode matches AND the screen is greater than or equal to the qualifierValue.