BoxAlignmentGeometryBaseline class
Baseline alignment for text-containing elements.
BoxAlignmentGeometryBaseline aligns items based on their text baseline, which is essential for aligning text elements so that the text sits on the same line regardless of font size or other styling differences.
This alignment type is commonly used in flex layouts containing text or elements with text children to ensure visual alignment of the text baseline.
- Inheritance
-
- Object
- BoxAlignmentGeometry
- BoxAlignmentGeometryBaseline
Constructors
- BoxAlignmentGeometryBaseline()
-
Creates a baseline alignment instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
adjustSize(
{required ParentLayout parent, required LayoutAxis axis, required double viewportSize, required double contentSize, required double childSize}) → double? -
Optionally adjusts the size of the child during alignment.
inherited
-
align(
{required ParentLayout parent, required LayoutAxis axis, required double viewportSize, required double contentSize, required double maxBaseline, required double childBaseline}) → double -
Aligns the child so its baseline matches the maximum baseline.
override
-
needsBaseline(
{required ParentLayout parent, required LayoutAxis axis}) → bool -
Baseline alignment requires baseline information to function.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override