width static method

double width(
  1. double p,
  2. BuildContext context
)

this is for the width

Implementation

static double width(double p, BuildContext context) {
  return MediaQuery.of(context).size.width * (p / 100);
}