calculateHeightByScale function
Calculate height by scale
// Get the height of 16/9 according to the screen width
double height = calculateHeightByScale(Get.width, 16/9);
Implementation
double calculateHeightByScale(double width, double scale) {
return width / scale;
}