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