setSize method
Set size using the smaller of width/height ratio Useful for square elements like icons
size - Size value from design draft
Returns proportional size for current device
Implementation
double setSize(num size) => size * math.min(scaleWidth, scaleHeight);