calculateHeightByScale function

double calculateHeightByScale(
  1. double width,
  2. double scale
)

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;
}