heightInPercent function

double heightInPercent(
  1. double percent,
  2. BuildContext context
)

Implementation

double heightInPercent(double percent, BuildContext context) {
  final toDouble = percent / 100;
  return MediaQuery.of(context).size.height * toDouble;
}