scaledHeight property

double scaledHeight
getter/setter pair

Simulated content height calculations.

The scaledHeight is dependent upon the screenWidth and breakpoints. If the widget is scaled, the height is computed to preserve the scaled aspect ratio. The scaledHeight is computed with the following algorithm:

  1. Find the active breakpoint. If the widget should resize, nothing more needs to be done.
  2. If the widget should scale, calculate the screen aspect ratio and return the proportional height.
  3. If there are no active breakpoints and defaultScale is resize, nothing more needs to be done.
  4. Return calculated proportional height with minWidth.

Implementation

double scaledHeight = 0;