getSizedConstraints abstract method
if no action item is expanded by ActionController,
SpaceEvenlyLayoutDelegate
would give each action item the same BoxConstraints
calculated by averaging the total space along the axis
;
FlexLayoutDelegate
would give each action item different BoxConstraints determined by their flex value.
if one action item is expanded by ActionController,
other action items would eventually have an empty size, while the expanded action item would occupy the total space
the remained space would be added into the expanded action item in _fillRemainSpace
to ensure it occupies the total space
Implementation
SizedConstraints getSizedConstraints({
required Size size,
required Axis axis,
required int childCount,
});