calculateTableWidth method
Implementation
double calculateTableWidth(double sum, double maxWidth) {
double tmp;
if (Get.width < 768) {
tmp = sum * 130;
} else if (Get.width < 992) {
tmp = sum * 145;
} else if (Get.width < 1200) {
tmp = sum * 160;
} else if (Get.width < 1500) {
tmp = sum * 185;
} else {
tmp = sum * 200;
}
if (tmp < maxWidth) {
return maxWidth;
}
return tmp;
}