dynamicWidth property
double
get
dynamicWidth
Implementation
double get dynamicWidth {
double screenWidth = SizeConfig.screenWidth as double;
// 375 is the layout width that designer use
return (this! / 270) * screenWidth;
}