screenWidthPercent method

double screenWidthPercent({
  1. required int percent,
})

Implementation

double screenWidthPercent({required int percent}) {
  _checkPercent(percent: percent);
  var rawWidth = MediaQuery.of(context).size.width;
  return _calculatePercent(initialVal: rawWidth, percent: percent);
}