Size findIntrinsicSize(RenderBox? box, double maxWidth) { if (box == null) return Size.zero; box.layout(BoxConstraints(maxWidth: maxWidth), parentUsesSize: true); return box.size; }