gap2 1.0.0 copy "gap2: ^1.0.0" to clipboard
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
  • Gap widget for fixed spacing in Flex and Scrollable layouts
  • MaxGap widget for flexible spacing with a maximum extent
  • SliverGap for native spacing in CustomScrollView slivers
  • Automatic axis resolution for Row, Column, and Scrollable
  • 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 RenderSliver implementation (no SliverToBoxAdapter hacks)
  • 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
4
likes
160
points
130
downloads

Publisher

verified publisherfedeluba.dev

Weekly Downloads

A small but powerful Flutter layout primitive for intentional spacing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on gap2