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