height static method

double height(
  1. BuildContext context
)

Implementation

static double height(BuildContext context) {
  final double screenHeight = MediaQuery.sizeOf(context).height;
  final double bottomPadding = MediaQuery.viewPaddingOf(context).bottom;
  return screenHeight * (0.12 + (bottomPadding / screenHeight));
}