flexiblebox_dart library

Classes

Box
A layout container in the independent layout system.
BoxAlignment
Fixed-position box alignment that doesn't consider text direction.
BoxAlignmentBase
Abstract base class for alignment geometries that don't support baseline or stretch.
BoxAlignmentContent
Abstract base class for alignment geometries that support stretch and fixed alignments but not baseline.
BoxAlignmentContentStretch
Stretch alignment that makes items fill available space.
BoxAlignmentDirectional
Text-direction-aware box alignment that adapts to locale.
BoxAlignmentGeometry
Abstract base class for all alignment geometries in flexbox layouts.
BoxAlignmentGeometryBaseline
Baseline alignment for text-containing elements.
BoxAlignmentSpacing
Spacing-based box alignment for distributing items with gaps.
BoxChildLayout
Adapter that makes a Box compatible with the layout system.
BoxParentData
Parent data for children in the independent layout system.
ChildLayoutCache
Cache for storing computed layout sizes to avoid redundant calculations.
ChildLayoutDryDelegate
A delegate that performs dry layout operations on behalf of a child.
EdgeSpacing
Defines spacing values for all four edges of a rectangle.
EdgeSpacingDirectional
Defines directional spacing values for the edges of a rectangle.
EdgeSpacingGeometry
Abstract base class for edge spacing geometry with directional awareness.
FlexChildLayoutCache
Cache for storing computed layout values for individual flex children.
FlexLayout
A layout algorithm implementing the CSS Flexbox specification.
FlexLayoutCache
Cache for storing computed layout values for an entire flex layout.
FlexLayoutHandle
Handle for performing flex layout operations.
FlexLineLayoutCache
Cache for storing computed layout values for a single flex line.
Layout
Abstract base class for layout algorithms.
LayoutConstraints
Defines the size constraints for layout calculations.
LayoutData
Data structure containing all layout properties for a child element.
LayoutHandle<T extends Layout>
Handle for performing layout operations with a specific algorithm.
LayoutOffset
Represents a two-dimensional offset with x and y coordinates.
LayoutOverflow
Controls overflow behavior and scrollability of a layout container.
LayoutPipelineOwner
Manages the layout pipeline for the independent layout system.
LayoutRange
Represents a one-dimensional range with start and end points.
LayoutRect
Represents a rectangle with position and size.
LayoutSize
Represents a two-dimensional size with width and height.
OverflowBounds
Represents the bounds of content that overflows beyond the viewport edges.
ParentEdge
Represents the edge insets of a parent container's padding or bounds.
ParentRect
A rectangle that includes information about parent edge insets.
PositionCalculated
A position unit that performs calculations between two other position units.
PositionChildSize
A position unit that represents the size of a child element.
PositionConstraint
A position unit that constrains another position unit between minimum and maximum bounds.
PositionContentSize
A position unit that represents the total content size along an axis.
PositionCross
A position unit that evaluates another position unit on the cross axis.
PositionFixed
A position unit that represents a fixed, unchanging offset value.
PositionOffset
A position unit representing the scroll offset position (named 'boxOffset' in expressions).
PositionOverflow
A position unit that represents the amount content overflows the viewport.
PositionRelative
A position unit that represents a position relative to the parent size.
PositionScroll
A position unit that represents the current scroll offset.
PositionUnderflow
A position unit that represents the amount of empty space when content is smaller than viewport.
PositionUnit
Abstract base class for position units used in element positioning.
PositionViewportEndBound
A position unit that represents the end boundary of the viewport.
PositionViewportSize
A position unit that represents the full viewport size along an axis.
SizeCalculated
A size unit that performs calculations between two other size units.
SizeConstraint
A size unit that constrains another size unit between minimum and maximum bounds.
SizeFitContent
A size unit that fits the content within the available space.
SizeFixed
A size unit that represents a fixed, unchanging size value.
SizeMaxContent
A size unit that sizes to the maximum intrinsic size of the content.
SizeMinContent
A size unit that sizes to the minimum intrinsic size of the content.
SizeRelative
A size unit that represents a size relative to the parent size.
SizeUnit
Abstract base class for size units used in flexbox layouts.
SizeViewport
A size unit that matches the viewport size along the specified axis.
SpacingCalculated
A spacing unit that performs calculations between two other spacing units.
SpacingChildSize
A spacing unit that references the size of a child element.
SpacingConstraint
A spacing unit that constrains another spacing unit within min/max bounds.
SpacingFixed
A spacing unit that represents a fixed, unchanging spacing value.
SpacingRelative
A spacing unit that represents a spacing relative to the parent size.
SpacingUnit
Abstract base class for spacing units used in margins, padding, and gaps.
SpacingViewport
A spacing unit that matches the viewport size along the specified axis.

Enums

FlexDirection
Defines the direction in which children are laid out in a flex container.
FlexWrap
Defines how flex items wrap within the flex container when they exceed the container's size.
LayoutAxis
Represents the axis along which layout occurs.
LayoutBehavior
Defines how a child element participates in the layout algorithm.
LayoutTextBaseline
Defines text baseline types for alignment calculations.
LayoutTextDirection
Defines text direction for layout calculations.
PositionType
Defines how an element establishes a positioning context for its absolutely positioned children.

Mixins

ChildLayout
Interface for child elements that participate in layout.
ParentLayout
Interface for parent elements that manage child layout.

Extension Types

LayoutBaselineOffset
Represents a baseline offset value with optional null state.

Extensions

PositionUnitExtension on PositionUnit
Extension providing arithmetic operators for position units.
SizeUnitExtension on SizeUnit
Extension methods on SizeUnit to provide arithmetic operations.
SpacingUnitExtension on SpacingUnit
Extension methods on SpacingUnit to provide arithmetic operations.

Functions

calculationAdd(double a, double b) double
Adds two values: a + b
calculationDivide(double a, double b) double
Divides the first value by the second: a / b
calculationMultiply(double a, double b) double
Multiplies two values: a * b
calculationSubtract(double a, double b) double
Subtracts the second value from the first: a - b

Typedefs

CalculationOperation = double Function(double a, double b)
Defines a mathematical operation for combining two numeric values.