h property

double get h

Alto Responsive (sin context): Obtiene el alto como porcentaje de la pantalla. Acepta valores de 0-100 (ej: 30.h) o 0-1 (ej: 0.3.h)

Ejemplos:

// Uso básico
height: 30.h  // 30% del alto
height: 0.3.h  // Equivalente usando decimales

// Para variaciones multi-plataforma, usa rh()
height: rh(mobile: 40, tablet: 30, desktop: 25)

Implementation

double get h {
  final screenInfo = ScreenInfoManager().info;
  final normalizedValue = _normalizeValue(this);
  return screenInfo.height * normalizedValue;
}