layout method
Lays out this LabelContainer.
The layout step 1 is calling the contained _textPainter.layout
;
step 2 is creating the _tiltedLabelEnvelope
around the horizontally layed out _textPainter
by calling
_tiltedLabelEnvelope = _createLabelEnvelope();
Implementation
@override
void layout(LayoutExpansion parentLayoutExpansion) {
// todo-01-morph : cannot set _layoutExpansion here, as it is private in another src file
// it does not appear needed.
Tuple2 sizeAndOverflow = _layoutAndCheckOverflowInTextDirection();
layoutSize = sizeAndOverflow.item1;
}