screenHeight property

double get screenHeight

The 'Logical' height of the screen

Implementation

double get screenHeight {
  double logicalHeight;
  final context = this.context;
  if (context == null) {
    final size = mainWindow.physicalSize / mainWindow.devicePixelRatio;
    logicalHeight = size.height;
  } else {
    final media = MediaQuery.of(context);
    logicalHeight = media.size.height -
        media.padding.top -
        kToolbarHeight -
        kBottomNavigationBarHeight;
  }
  return logicalHeight;
}