Get percentage-based width.
static double widthPercent(double screenWidth, double percent) => screenWidth * (percent / 100);