single_axis_wrap 2.0.0
single_axis_wrap: ^2.0.0 copied to clipboard
A Flutter widget that chooses one complete row or column based on available space.
Changelog #
2.0.0 #
- Breaking: Raised the minimum supported SDKs to Flutter 3.47.7 and Dart 3.13.5. Upgrade Flutter before adopting this release.
- Corrected intrinsic sizing after
maintainLayoutlocks its first layout direction. - Fixed the example so controls and their state stay consistent across rebuilds and layout changes, with scrolling in short windows.
1.0.4 #
- Refreshed the README with a shorter usage-focused guide and clearer examples.
1.0.3 #
- Fixed dry layout and real layout parity when the primary direction falls back.
- Stabilized intrinsic sizing, including finite opposite-axis queries.
- Fixed RTL,
verticalDirection, and single-childspaceBetweenpositioning semantics. - Fixed unbounded constraint handling and finite spacing validation.
- Deprecated
MeasurementStrategy.preferPrimary; useMeasurementStrategy.layoutinstead. - Improved direction-change callback delivery, dry baseline support, and clipping semantics.
- Clarified layout decisions, constraints,
maintainLayout, callbacks, and measurement strategies in the docs.
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