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