calculates the view width for the given input
double viewWidth(num input) => input * (_screenWidth / 100);