lazy_wrap 0.1.1 copy "lazy_wrap: ^0.1.1" to clipboard
lazy_wrap: ^0.1.1 copied to clipboard

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:lazy_wrap/lazy_wrap.dart';

void main() {
  runApp(const LazyWrapDemoApp());
}

class LazyWrapDemoApp extends StatelessWidget {
  const LazyWrapDemoApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'LazyWrap Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text('LazyWrap Demo')),
        body: LazyWrap.fixed(
          itemCount: 10000,
          estimatedItemWidth: 160,
          estimatedItemHeight: 100,
          spacing: 12,
          runSpacing: 12,
          padding: const EdgeInsets.all(16),
          itemBuilder: (context, index) {
            return Card(
              child: Padding(
                padding: const EdgeInsets.all(16),
                child: Text('Item $index'),
              ),
            );
          },
        ),
      ),
    );
  }
}
18
likes
160
points
43
downloads

Publisher

verified publisherhensell.dev

Weekly Downloads

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, very_good_analysis

More

Packages that depend on lazy_wrap