flexiblebox_flutter library

Classes

AbsoluteItem
An interface for widgets that support absolute positioning within a layout container.
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.
BuilderFlexItem
A builder variant of FlexItem that allows dynamic child construction.
ColumnBox
A convenience widget for creating vertical flex layouts.
DefaultScrollbar
A default implementation of a scrollbar with customizable appearance.
DirectFlexItem
A flex item that directly wraps a widget with flex properties.
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.
FlexBox
A flexible box layout widget that implements the CSS Flexbox specification.
FlexItem
A widget that configures flex properties for an individual child within a FlexBox.
LayoutBoxParentData
Parent data for children of RenderLayoutBox.
LayoutBoxViewport
A viewport widget that manages the rendering of layout children with scrolling support.
LayoutBoxWidget
A flexible layout container that supports scrolling and custom layout algorithms.
LayoutItem
An interface for widgets that participate in custom layout algorithms.
LayoutOverflow
Controls overflow behavior and scrollability of a layout container.
OverflowBounds
Represents the bounds of content that overflows beyond the viewport edges.
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.
RelativePositioning
Provides relative positioning information for layout calculations.
RenderBoxChildLayout
Adapter that makes a RenderBox compatible with the flexbox layout system.
RenderLayoutBox
Render object for flexbox layout containers.
RenderRotatedWidget
Render object that handles the rotation transformation and layout of RotatedWidget.
RotatedWidget
A widget that rotates its child by a specified angle while filling the available space.
RowBox
A convenience widget for creating horizontal flex layouts.
ScrollbarHandler
Abstract interface for handling scrollbar interactions and state.
Scrollbars
A widget that provides scrollbars for a scrollable child.
ScrollThumbGesture
A widget that handles drag gestures on the scrollbar thumb.
ScrollTrack
A widget that combines scrollbar track and thumb gesture handling.
ScrollTrackGesture
A widget that handles gestures on the scrollbar track.
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.
PositionType
Defines how an element establishes a positioning context for its absolutely positioned children.

Extensions

CrossAxisAlignmentExtension on CrossAxisAlignment
Extension methods for converting Flutter's CrossAxisAlignment to flexbox BoxAlignmentGeometry.
EdgeInsetsDirectionalExtension on EdgeInsetsDirectional
Extension methods for converting Flutter's EdgeInsetsDirectional to flexbox EdgeSpacingDirectional.
EdgeInsetsExtension on EdgeInsets
Extension methods for converting Flutter's EdgeInsets to flexbox EdgeSpacing.
EdgeInsetsGeometryExtension on EdgeInsetsGeometry
Extension methods for converting Flutter's EdgeInsetsGeometry to flexbox EdgeSpacingGeometry.
MainAxisAlignmentExtension on MainAxisAlignment
Extension methods for converting Flutter's MainAxisAlignment to flexbox BoxAlignmentContent.
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

axisFromLayoutAxis(LayoutAxis axis) Axis
Converts a LayoutAxis to a Flutter Axis.
boxConstraintsFromLayoutConstraints(LayoutConstraints constraints) BoxConstraints
Converts LayoutConstraints to Flutter BoxConstraints.
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
layoutAxisFromAxis(Axis axis) LayoutAxis
Converts a Flutter Axis to a LayoutAxis.
layoutConstraintsFromBoxConstraints(BoxConstraints constraints) LayoutConstraints
Converts Flutter BoxConstraints to LayoutConstraints.
layoutOffsetFromOffset(Offset offset) LayoutOffset
Converts a Flutter Offset to a LayoutOffset.
layoutRectFromRect(Rect rect) LayoutRect
Converts a Flutter Rect to a LayoutRect.
layoutSizeFromSize(Size size) LayoutSize
Converts a Flutter Size to a LayoutSize.
layoutTextBaselineFromTextBaseline(TextBaseline baseline) LayoutTextBaseline
Converts a Flutter TextBaseline to a LayoutTextBaseline.
layoutTextDirectionFromTextDirection(TextDirection direction) LayoutTextDirection
Converts a Flutter TextDirection to a LayoutTextDirection.
offsetFromLayoutOffset(LayoutOffset offset) Offset
Converts a LayoutOffset to a Flutter Offset.
rectFromLayoutRect(LayoutRect rect) Rect
Converts a LayoutRect to a Flutter Rect.
sizeFromLayoutSize(LayoutSize size) Size
Converts a LayoutSize to a Flutter Size.
textBaselineFromLayoutTextBaseline(LayoutTextBaseline baseline) TextBaseline
Converts a LayoutTextBaseline to a Flutter TextBaseline.
textDirectionFromLayoutTextDirection(LayoutTextDirection direction) TextDirection
Converts a LayoutTextDirection to a Flutter TextDirection.

Typedefs

CalculationOperation = double Function(double a, double b)
Defines a mathematical operation for combining two numeric values.
ScrollbarWidgetBuilder = Widget Function(BuildContext context, BoxConstraints constraints, ScrollbarHandler scrollbarHandler)
Function signature for building scrollbar widgets.