widthPercent static method

double widthPercent(
  1. double screenWidth,
  2. double percent
)

Get percentage-based width.

Implementation

static double widthPercent(double screenWidth, double percent) =>
    screenWidth * (percent / 100);