lazy_wrap library

Lazy Wrap

A wrap-like widget for Flutter that creates children lazily as they approach the viewport.

Use LazyWrap.fixed for items with known, uniform dimensions. Use LazyWrap.dynamic for items whose dimensions are measured before they are placed in a run.

Example:

LazyWrap.fixed(
  itemCount: 1000,
  estimatedItemWidth: 120,
  estimatedItemHeight: 100,
  itemBuilder: (context, index) => Card(child: Text('Item $index')),
)

LazyWrap.dynamic(
  itemCount: 1000,
  itemBuilder: (context, index) => Chip(label: Text('Tag $index')),
  fadeInItems: true,
)

Classes

LazyWrap
A scrollable wrap widget for Flutter, combining the layout behavior of Wrap with lazy child creation.

Enums

LazyWrapEngine
Rendering engine selection for LazyWrap.dynamic.