height static method
this is for the height if the device is tablet then the any height width size is reduced at 60%
Implementation
static double height(double p, BuildContext context) {
bool isMobile = checkDeviceTabOrMobile(context);
if(!isMobile){
return MediaQuery.of(context).size.width * (p * 0.6 / 100);
}
return MediaQuery.of(context).size.height * (p / 100);
}