boxy
2.3.0, released 7 months ago by tst.sh
Advanced flex, custom multi-child layouts, and slivers for Flutter.
WASM-ready
What it does
Boxy provides utilities to overcome built-in layout limitations in Flutter. It includes advanced flex layouts like BoxyRow and BoxyColumn, simplified custom multi-child render objects via CustomBoxy, and sliver utilities like SliverContainer.
AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need children in a Row or Column to match sizes dynamically.
- You want to build custom multi-child layouts without writing verbose RenderObject code.
- You need to add decorations or background cards to sliver lists.
Skip it when
- Standard Row, Column, and Flex widgets already fit your requirements.
- You want a fully formed UI kit with pre-styled components.
Strengths
- Simplifies custom layout implementation significantly compared to raw RenderObjects.
- Allows inflating arbitrary widgets at layout time.
- Includes helpful axis-dependent utility extensions.
Weaknesses
- Requires learning boxy-specific layout delegates and patterns.
- Niche scope limited strictly to layout challenges.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Not documented
BoxyRow(
children: [
Dominant(
child: Container(color: Colors.red),
),
BoxyFlexible(
child: Container(color: Colors.blue),
),
],
)Alternatives
Packages that do the same job and could replace boxy.
Works with
Packages commonly used together with boxy: ones it builds on, ones built on it, and its own family.