getScreenH static method

double getScreenH(
  1. BuildContext context
)

screen height 当前屏幕 高

Implementation

static double getScreenH(BuildContext context) {
  MediaQueryData mediaQuery = MediaQuery.of(context);
  return mediaQuery.size.height;
}