screenInfo static method

ScreenInfo screenInfo(
  1. BuildContext context
)

Implementation

static ScreenInfo screenInfo(BuildContext context){
  final display = MediaQuery.of(context);
  final info = display.size;
  final width = info.width;
  final height = info.height;
  final statusBarHeight = display.padding.top;
  return ScreenInfo(width, height, statusBarHeight);
}