getResGridRatio function
- @Deprecated('Use cGetResGridRatio()$_defaultText')
- required BuildContext context,
- required int height,
- required int width,
- bool logData = false,
Implementation
@Deprecated('Use cGetResGridRatio()$_defaultText')
double getResGridRatio({
required BuildContext context,
required int height,
required int width,
bool logData = false,
}) {
double w = (context.cWidth / (context.cWidth / width).round());
double h = (context.cWidth / (context.cWidth / width));
double asr = w / (h - (width - height));
if (logData) {
cLog('GridAspectRatio => $asr');
}
return asr;
}