fracWidth static method

double fracWidth(
  1. BuildContext context,
  2. double divisor
)

Retorna fração da largura total. divisor vai de 0 à 1

Implementation

static double fracWidth(BuildContext context, double divisor) {
  return MediaQuery.of(context).size.width / divisor;
}