layoutAll method

void layoutAll()

Implementation

void layoutAll() {
  layoutChildren(constraints);
  layoutText(
    minWidth: constraints.minWidth,
    maxWidth: constraints.maxWidth,
    forceLayout: true,
  );

  setParentData();

  // We grab _textPainter.size and _textPainter.didExceedMaxLines here because
  // assigning to `size` will trigger us to validate our intrinsic sizes,
  // which will change _textPainter's layout because the intrinsic size
  // calculations are destructive. Other _textPainter state will also be
  // affected. See also RenderEditable which has a similar issue.
  final Size textSize = _textPainter.size;
  size = constraints.constrain(textSize);
}