topSafeHeight static method

double topSafeHeight()

获取顶部安全距离高度(状态栏高度)

返回结果: double 顶部安全区高度(单位: dp)

示例:

double safeTop = DScreenUtil.topSafeHeight();

Implementation

static double topSafeHeight() {
  return Get.mediaQuery.padding.top;
}