sh property

double get sh

Implementation

double get sh {
  try {
    return this * MediaQuery.of(AppContext.context).size.height / 100;
  } catch (e) {
    final physicalSize = WidgetsBinding.instance.platformDispatcher.views.first.physicalSize;
    final devicePixelRatio = WidgetsBinding.instance.platformDispatcher.views.first.devicePixelRatio;
    final screenHeight = physicalSize.height / devicePixelRatio;
    return screenHeight * (toDouble() / 100);
  }
}