adjustSize method
double?
adjustSize({
- required ParentLayout parent,
- required LayoutAxis axis,
- required double viewportSize,
- required double contentSize,
Optionally adjusts the size of the child during alignment.
Some alignment modes (like stretch) may modify the child's size to fill available space. This method returns the adjusted size, or null if no size adjustment is needed.
Parameters:
parent
: The parent layout contextaxis
: The axis along which sizing is being consideredviewportSize
: The available viewport sizecontentSize
: The child's natural content size
Returns the adjusted size, or null to use the natural size.
Implementation
double? adjustSize({
required ParentLayout parent,
required LayoutAxis axis,
required double viewportSize,
required double contentSize,
}) => null;