lazy_wrap 0.0.8+5 copy "lazy_wrap: ^0.0.8+5" to clipboard
lazy_wrap: ^0.0.8+5 copied to clipboard

A Flutter widget that mimics Wrap layout behavior with lazy rendering using ListView.builder.

lazy_wrap #

A Flutter widget that combines the layout behavior of Wrap with the performance of ListView.builder.

Perfect for displaying cards or widgets in multiple columns with efficient vertical scrolling.

🚀 Quick Example #

LazyWrap(
  itemCount: items.length,
  itemBuilder: (context, index) => ProductCard(item: items[index]),
  estimatedItemWidth: 120,
  estimatedItemHeight: 100,
  spacing: 8,
  runSpacing: 8,
  padding: EdgeInsets.all(12),
  useDynamicMeasurement: false, // or true for auto size measuring
)

🎯 Features #

  • Lazy scroll (only renders visible items)
  • Wrap-style layout with efficient memory usage
  • Responsive to available width
  • Customizable spacing, padding, and alignment
  • Supports both fixed and dynamic size measurement
  • Slider control example for border radius
  • Switch toggle for dynamic/fixed mode
  • Clean animation and styling ready

📦 Installation #

Add it to your pubspec.yaml:

dependencies:
  lazy_wrap: ^0.0.7

🛠 Usage Tip #

Use useDynamicMeasurement: false to eliminate layout jumps and maximize performance.

For widgets with highly variable size, use true and optionally apply batch updates or smooth resize techniques.

🌀 Example #

LazyWrap Demo

💻 Live Demo #

Check it out in action:
👉 lazy-wrap-demo.pages.dev

💡 Inspired by #

This package was built to fill the gap between Wrap layout and ListView.builder efficiency.

19
likes
0
points
184
downloads

Publisher

verified publisherhensell.dev

Weekly Downloads

A Flutter widget that mimics Wrap layout behavior with lazy rendering using ListView.builder.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on lazy_wrap