dynamic_height_list_view
0.0.2, released 2 years ago by yudiz.com
Provides ListView and GridView widgets that support dynamic item heights.
What it does
The dynamic_height_list_view package supplies DynamicHeightListView and DynamicHeightGridView widgets to handle layout requirements where items have varying heights. It supports customizable padding, cross-axis counts, scroll directions, and physics.
AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a grid or list view where individual items have varying heights.
- You require responsive and adaptive layouts for content of differing sizes.
Skip it when
- You are using standard lists or grids with uniform item sizes where built-in Flutter components are sufficient.
Strengths
- Supports both dynamic height grid views and dynamic height list views.
- Allows customization of item padding, spacing, and scroll behavior.
- Easy installation and declarative configuration.
Weaknesses
- Limited documentation beyond basic examples and properties table.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
DynamicHeightListView<int>(
items: List.generate(10, (index) => index),
itemPadding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0),
itemBuilder: (context, item) => Card(
child: Container(
height: 40,
width: 100,
color: Colors.blue,
),
),
)Alternatives
Packages that do the same job and could replace dynamic_height_list_view.
- responsive_grid
Responsive grid system for Flutter with row/column, list, and staggered list widgets
50Compare - reorderable_grid_view
A reorderable grid view widget for Flutter supporting drag-and-drop reordering.
50Compare - indexed_list_view
Infinite ListView that lets you programmatically jump instantly to any item by index.
82Compare - responsive_grid_list
Responsive grid list widget using ListView.builder for efficient large lists
62Compare