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