getPercentageWidth static method

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

Implementation

static double getPercentageWidth(BuildContext  context, double p) {
  var result =  getWidth(context) *  p;
  return result/100.0;
}