getProportionateScreenWidth function

double getProportionateScreenWidth(
  1. double inputWidth
)

Implementation

double getProportionateScreenWidth(double inputWidth) {
  double screenWidth = SizeConfig.screenWidth;
  // 375 is the layout width that designer use
  return (inputWidth / 375.0) * screenWidth;
}