screenHeightFraction function
double
screenHeightFraction(
- BuildContext context, {
- int dividedBy = 1,
- double offsetBy = 0,
- double max = 3000,
Gets the fraction of the screen height considering dividedBy and offsetBy,
with a maximum of max.
Implementation
double screenHeightFraction(BuildContext context,
{int dividedBy = 1, double offsetBy = 0, double max = 3000}) =>
min((context.sh - offsetBy) / dividedBy, max);