Gets the preferred height of the widget for the specified width.
This is used by the parent Container to help layout the widget.
The width to be used by the widget.