getProportionateScreenWidth static method

double getProportionateScreenWidth(
  1. double inputWidth
)

Implementation

static double getProportionateScreenWidth(double inputWidth) {
   double screenWidth = Get.size.width;
   // 375 is the layout width that designer use
   return (inputWidth / 428) * screenWidth;
 }