bento_layout library
bento_layout — skyline bin-packing grid for Flutter.
Public API:
- BentoGrid — drop-in scrollable grid widget
- BentoItem — tile wrapper (child + size)
- BentoItemSize — 3×3 tile size enum
- BentoDimension — resolved width fraction + height span
- BentoSizingStrategy — interface for custom size mappings
- DefaultBentoSizingStrategy — built-in 3×3 size implementation
Classes
- BentoDimension
- The resolved dimensions of a bento tile.
- BentoGrid
- A scrollable bento grid that positions tiles of varying sizes using the skyline bin-packing algorithm.
- BentoGridDelegate
- A SliverGridDelegate that uses the skyline bin-packing algorithm.
- BentoItem
- A tile in the bento grid.
- BentoSizingStrategy
- Strategy interface for resolving a BentoItemSize to its BentoDimension.
- DefaultBentoSizingStrategy
- Default sizing strategy implementing the 3×3 bento size matrix.
Enums
- BentoItemSize
- Tile size vocabulary for the bento grid.