getHeight static method
Implementation
static double getHeight(BuildContext? ctx) {
if(ctx == null) {
return 0;
}
MediaQueryData mediaQuery = MediaQuery.of(ctx);
final size = mediaQuery.size;
if(size.width > size.height) {
h = 30 + divide;
w = ((size.width + divide) / 10);
return h * 5;
}
w = ((size.width + divide) / 10);
h = w * 1.2;
return h * 5;
}