Returns the width based on the specified percentage of the screen width.
double getWidth(int percent, context) { return (MediaQuery.of(context).size.width * (percent / 100)).toDouble(); }