1. override
double getMinIntrinsicHeight(double width, int childCount)

Return the minimum height that this grid could be without failing to paint its contents within itself.

Override this to provide a more efficient or more correct solution. The default implementation actually instantiates a grid specification and measures the grid at the given height and child count.

For more details on implementing this method, see RenderBox.computeMinIntrinsicHeight.

Source

@override
double getMinIntrinsicHeight(double width, int childCount) {
  // TODO(ianh): Strictly, this should examine the children.
  return 0.0;
}