EN: Scaled engine. Mirrors the Kotlin calculateScaledDp exactly:
- Applies Inverter rules to swap the effective DpQualifier.
- When
ignoreMultiWindowsis set and the window is constrained, returns the base unchanged. - Default
SMALL_WIDTH+ no custom sensitivity delegates to the snapshot precomputed multipliers (single multiply). - Other qualifiers / custom sensitivity compute inline.
PT: Motor escalado. Espelha o calculateScaledDp do Kotlin exatamente:
- Aplica as regras de Inverter para trocar o DpQualifier efetivo.
- Com
ignoreMultiWindowse janela limitada, devolve a base inalterada. SMALL_WIDTHpadrão + sem sensibilidade customizada usa os multiplicadores pré-computados do snapshot (uma multiplicação).- Outros qualificadores / sensibilidade customizada calculam inline.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calculateScaledDp(
double baseValue, ScreenConfiguration configuration, DpQualifier qualifier, Inverter inverter, bool ignoreMultiWindows, bool applyAspectRatio, double? customSensitivityK, {bool? knownInMultiWindow, DimenMetrics? metrics}) → double - Pure-math scaled dp kernel over an explicit configuration.
-
resolveScaledDp(
double base, AppDimensContextLike scope, DpQualifier qualifier, {Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) → double - Full-path scaled dp resolution against a window-like scope.
-
resolveScaledPx(
double base, AppDimensContextLike scope, DpQualifier qualifier, {Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) → double - Full-path scaled px resolution against a window-like scope.
-
resolveScaledSpPx(
double base, AppDimensContextLike scope, DpQualifier qualifier, {bool fontScale = true, Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) → double - Rendered physical pixels of a scaled sp resolution.
-
resolveScaledSpValue(
double base, AppDimensContextLike scope, DpQualifier qualifier, {bool fontScale = true, Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) → double -
Scaled sp value (logical sp): with
fontScalethe framework applies the system font scale at render; without it the value pre-divides by the scale so rendering cancels it back.