gap2 1.0.0
gap2: ^1.0.0 copied to clipboard
A small but powerful Flutter layout primitive for intentional spacing.
Changelog #
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 #
Added #
- Initial stable release of gap2
Gapwidget for fixed spacing in Flex and Scrollable layoutsMaxGapwidget for flexible spacing with a maximum extentSliverGapfor native spacing inCustomScrollViewslivers- Automatic axis resolution for
Row,Column, andScrollable - Clear runtime errors for invalid usage contexts
- Comprehensive widget and sliver test coverage
- Example application demonstrating all gap variants
Architecture #
- Shared internal layout model for box and sliver implementations
- Native
RenderSliverimplementation (noSliverToBoxAdapterhacks) - Strict separation between widget intent and render logic
- Predictable layout behavior across all supported contexts
Documentation #
- Complete README with usage examples and rationale
- In-code documentation for all public APIs