single_axis_wrap 1.0.3-dev.2
single_axis_wrap: ^1.0.3-dev.2 copied to clipboard
A Flutter widget that chooses one complete row or column based on available space.
Changelog #
1.0.3-dev.2 #
- Fixed dry layout and real layout parity when the primary direction does not fit.
- Stabilized intrinsic size calculations so they no longer depend on previous layout state and respect finite opposite-axis queries.
- Fixed RTL,
verticalDirection, and single-childspaceBetweenpositioning semantics. - Fixed unbounded constraint handling, narrowed
MeasurementStrategy.preferPrimary, and prevented infinite sizes for space-based alignments. - Deprecated
MeasurementStrategy.preferPrimary; useMeasurementStrategy.layoutinstead. - Tightened spacing validation, direction-change callback delivery, and clip semantics invalidation.
- Added dry baseline and approximate paint clip support.
- Expanded render-contract test coverage and clarified layout decision documentation.
1.0.2 #
- Organized code and enhanced code documentation.
1.0.1 #
- Added demo in the readme.
1.0.0 #
Initial release #
- Introduced
SingleAxisWrapwidget that automatically chooses between row and column layouts based on available space - Implemented robust RTL (right-to-left) support
- Added customizable spacing for both horizontal and vertical layouts
- Added alignment options using WrapAlignment and WrapCrossAlignment
- Implemented
maintainLayoutfeature to prevent unwanted layout changes during animations - Added
onLayoutDirectionChangedcallback for reacting to layout changes - Comprehensive test suite ensuring widget reliability
- Full documentation and examples