flutter_layout_grid
2.0.8, released 2 years ago by madewithfelt.com
A grid layout system for Flutter inspired by CSS Grid Layout.
WASM-ready
What it does
It provides a powerful grid layout system optimized for complex user interface designs. It supports fixed, flexible, and content-sized tracks, precise item positioning, overlapping items, and named grid areas.
AI-written summary of version 2.0.8, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need complex 2D layouts with fixed, flexible, or content-sized rows and columns.
- You want to use named grid areas for descriptive layout design similar to CSS Grid.
Skip it when
- You need features not yet supported, such as negative row/column starts/ends or minmax() track sizing.
- You require explicit automatic addition of rows and columns to accommodate out-of-bound items.
Strengths
- Precise control over item placement, spanning, and overlapping.
- Named grid areas for readable layouts.
- Helpful extension methods for concise track sizing and widget placement.
Weaknesses
- Does not support negative row or column indices.
- Throws an error if items are placed outside the explicitly defined grid.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
LayoutGrid(
columnSizes: [152.px, 1.fr, 152.px],
rowSizes: [112.px, auto, 1.fr, 64.px],
children: [
Header().inGridArea('header'),
Navigation().inGridArea('nav'),
],
)Alternatives
Packages that do the same job and could replace flutter_layout_grid.
- flutter_staggered_grid_view
Choose it if you specifically need staggered or heterogeneous grid layouts with varying item sizes.
50Compare
Works with
Packages commonly used together with flutter_layout_grid: ones it builds on, ones built on it, and its own family.