screenWidthFraction function

double screenWidthFraction(
  1. BuildContext context, {
  2. int dividedBy = 1,
  3. double offsetBy = 0,
})

Implementation

double screenWidthFraction(BuildContext context,
        {int dividedBy = 1, double offsetBy = 0}) =>
    (screenWidth(context) - offsetBy) / dividedBy;