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