Skip to content
pubscout

flex_list

1.2.0, released 2 years ago by an unverified publisher

A Flutter layout widget that wraps elements and extends their width to fill each row.

WASM-ready
$ flutter pub add flex_list
Source repository

What it does

FlexList places as many provided elements as possible into a single row like a Wrap widget, but also extends their width using the remaining space so that each row is fully filled. It also supports customizable horizontal and vertical spacing.

AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a wrap-like layout where items expand to fill the available width of each row.
  • You want automatic row-filling behavior for flexible list items.

Skip it when

  • You need standard non-expanding Wrap behavior.
  • You require complex staggered grid configurations.

Strengths

  • Fills rows to the maximum width automatically.
  • Customizable horizontal and vertical spacing.
  • Compatible with Flutter 3.

Weaknesses

  • Limited feature set beyond the single layout behavior.
  • Not documented with extensive configuration options beyond spacing.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
FlexList(
  horizontalSpacing: 5,
  verticalSpacing: 10,
  children: [
    for (var i = 0; i < 5; i++)
      Container(
        padding: EdgeInsets.all(10),
        child: Text("Item $i"),
      )
  ],
)

Alternatives

Packages that do the same job and could replace flex_list.