adaptive_listview 0.0.1 copy "adaptive_listview: ^0.0.1" to clipboard
adaptive_listview: ^0.0.1 copied to clipboard

A lightweight and adaptive Flutter list widget that automatically adjusts the number of visible items based on available height.

adaptive_listview #

A lightweight and adaptive Flutter list widget that automatically adjusts the number of visible items based on available height.

Features #

  • Automatically calculates and displays only the items that fit in the given height.
  • Shows a built-in “+X more” indicator for overflowing items.
  • Supports customizable padding, font size, and separator spacing.
  • Uses a non-scrollable, lightweight ListView for predictable layout behavior.

Getting started #

To use this package, add adaptive_listview as a dependency in your pubspec.yaml file.

Usage #

Minimal example:

    AdaptiveListView(items: List.generate(10, (index)=>'Item $index'))

Custom settings:

   AdaptiveListView(
        items: List.generate(10, (index) => 'Item $index'),
        padding: EdgeInsets.all(4),
        eventTextFontSize: 12,
        moreEventsIndicatorfontSize: 12,
        tileBorderWidth: 2,
        columnSpacing: 4,
        separatorHeight: 4,
      ),
1
likes
140
points
58
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight and adaptive Flutter list widget that automatically adjusts the number of visible items based on available height.

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on adaptive_listview