getStatusBarHeight static method

double getStatusBarHeight(
  1. BuildContext? context
)

Returns the height of the status bar.

Implementation

static double getStatusBarHeight(BuildContext? context) {
  return MediaQuery.of(context ?? Get.context!).padding.top;
}