calculateTableWidth method
Implementation
double calculateTableWidth(double sum, double maxWidth) {
print('max width $maxWidth');
double tmp;
if (Get.width < 576) {
tmp = sum * 100;
} else if (Get.width < 768) {
tmp = sum * 120;
} else if (Get.width < 992) {
tmp = sum * 140;
} else if (Get.width < 1200) {
tmp = sum * 160;
} else if (Get.width < 1500) {
tmp = sum * 180;
} else {
tmp = sum * 200;
}
if (tmp < maxWidth) {
return maxWidth;
}
return tmp;
}