getScreenHeight static method

double getScreenHeight(
  1. BuildContext? context
)

Returns the screen height of the current device.

Implementation

static double getScreenHeight(BuildContext? context) {
  return MediaQuery.of(context ?? Get.context!).size.height;
}