getScreenH static method

double getScreenH(
  1. BuildContext context
)

screen height 当前屏幕 高 dp

Implementation

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