printScreenInformation static method

void printScreenInformation()

Implementation

static void printScreenInformation() {
  appLogsNS('''
  Device Screen Details
  screenWidth: $screenWidth
  screenHeight: $screenHeight
  ---------X--------X-----------
  defaultScreenWidth: $defaultScreenWidth
  defaultScreenHeight: $defaultScreenHeight

  Actual  : After(Width)
  1      : ${1.w}
  10     : ${10.w}
  15     : ${15.w}
  20     : ${20.w}
  100    : ${100.w}

  Actual  : After(Height)
  1      : ${1.h}
  10     : ${10.h}
  15     : ${15.h}
  20     : ${20.h}
  100    : ${100.h}

  Actual  : After(Radius)
  10     : ${10.r}
  15     : ${15.r}
  20     : ${20.r}

  FontSize
  Actual : After
  15  :  ${15.sp}
  20  :  ${20.sp}

  ---------X--------X-----------
  Device width px: ${ScreenUtil().screenWidth}
  Device height px: ${ScreenUtil().screenHeight}
  Device pixel density: ${ScreenUtil().pixelRatio}
  Bottom safe zone distance dp: ${ScreenUtil().bottomBarHeight}
  Status bar height px: ${ScreenUtil().statusBarHeight}dp
  Ratio of actual width dp to design draft px: ${ScreenUtil().scaleWidth}
  Ratio of actual height dp to design draft px: ${ScreenUtil().scaleHeight}
  The ratio of font and width to the size of the design: ${ScreenUtil().scaleWidth}
  The ratio of  height width to the size of the design: ${ScreenUtil().scaleHeight}
  ''');
}