dynamic_height_grid_view
0.0.4, released 3 years ago by bookm.me
GridView with dynamic item heights without specifying an aspect ratio.
WASM-ready
What it does
Provides a GridView and a SliverDynamicHeightGridView that allows grid items to have dynamic heights. Removes the requirement of specifying an aspect ratio for grid elements.
AI-written summary of version 0.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a grid view where items have varying heights
- You want to avoid calculating aspect ratios for grid cells
Skip it when
- You need a staggered grid layout with complex spanning capabilities provided by specialized packages
Strengths
- No need to specify aspectRatio
- Supports custom scroll views via SliverDynamicHeightGridView
- Simple usage API
Weaknesses
- Limited documentation on advanced configurations
- Minimal feature set beyond dynamic height calculation
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
DynamicHeightGridView(
itemCount: 120,
crossAxisCount: 3,
crossAxisSpacing: 10,
mainAxisSpacing: 10,
builder: (ctx, index) {
/// return your widget here.
},
)Alternatives
Packages that do the same job and could replace dynamic_height_grid_view.
- flutter_staggered_grid_view
Pick it if you need advanced staggered grid layouts with variable spans and sizes.
50Compare