getStatusBarH static method

double getStatusBarH(
  1. BuildContext context
)

status bar Height 当前状态栏高度

Implementation

static double getStatusBarH(BuildContext context) {
  var mediaQuery = MediaQuery.of(context);
  return mediaQuery.padding.top;
}