rh property
double
get
rh
Calculates responsive height based on the design height values for the target device type.
This method adjusts the height based on the current screen height and the design height values for either a portrait or landscape phone. It scales the height proportionally between the minimum and maximum design heights.
Implementation
double get rh {
double designHeightValue =
ScreenAdaptiveConfig.instance!.targetDeviceType ==
TargetDeviceType.phonePortrait
? ScreenAdaptiveConfig.instance!.designMinHeight
: ScreenAdaptiveConfig.instance!.designMaxHeight;
return (this * ScreenAdaptiveConfig.instance!.screenHeight) /
designHeightValue;
}