sh property

double get sh

Scale based on design height (like flutter_screenutil) Requires setting designHeight in ResponsiveMasterConfig

Implementation

double get sh {
  final config = ResponsiveMasterConfig.instance;
  final designHeight = config.designHeight;

  if (designHeight == null) {
    return h; // Fallback to percentage-based
  }

  if (!config.enableCaching) {
    return this * DeviceData.height / designHeight;
  }

  return ResponsiveCache.getOrCompute(
    'sh_$this',
    () => this * DeviceData.height / designHeight,
    width: DeviceData.width,
    height: DeviceData.height,
    orientation: DeviceData.orientation.toString(),
  );
}