resolveScaledSpPx static method

double resolveScaledSpPx(
  1. double base,
  2. AppDimensContextLike scope,
  3. DpQualifier qualifier, {
  4. bool fontScale = true,
  5. Inverter inverter = Inverter.standard,
  6. bool ignoreMultiWindows = false,
  7. bool applyAspectRatio = false,
  8. double? customSensitivityK,
})

Rendered physical pixels of a scaled sp resolution.

Implementation

static double resolveScaledSpPx(
  double base,
  AppDimensContextLike scope,
  DpQualifier qualifier, {
  bool fontScale = true,
  Inverter inverter = Inverter.standard,
  bool ignoreMultiWindows = false,
  bool applyAspectRatio = false,
  double? customSensitivityK,
}) {
  final value = resolveScaledSpValue(base, scope, qualifier,
      fontScale: fontScale,
      inverter: inverter,
      ignoreMultiWindows: ignoreMultiWindows,
      applyAspectRatio: applyAspectRatio,
      customSensitivityK: customSensitivityK);
  final fs = fontScale ? scope.dimenMetrics.fontScale : 1.0;
  return value * scope.dimenMetrics.density * (fs > 0 ? fs : 1.0);
}