widthOf static method

double widthOf(
  1. double factor,
  2. BuildContext context
)

Implementation

static double widthOf(double factor, BuildContext context) {
  var width = MediaQuery.of(context).size.width;
  return factor * (width / 100);
}