getHeight static method

double getHeight(
  1. BuildContext? ctx
)

Implementation

static double getHeight(BuildContext? ctx){
  if(ctx == null) {
    return 0;
  }
  MediaQueryData mediaQuery = MediaQuery.of(ctx);
  return mediaQuery.size.width / 3 / 2 * 4;
}