Skip to content
pubscout

dynamic_height_list_view

0.0.2, released 2 years ago by yudiz.com

Provides ListView and GridView widgets that support dynamic item heights.

WASM-ready
$ flutter pub add dynamic_height_list_view
Source repository

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.