perWidth method Null safety

double perWidth(
  1. BuildContext context,
  2. int percentage
)

Retorna percentual da largura total

Implementation

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