Measures the size this component would take given maxSize.
maxSize
This delegates to fitWidth and fitHeight.
@override Size measure(Size maxSize) { return Size(width: fitWidth(), height: fitHeight()); }