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

A Flutter widget that mimics Wrap layout behavior with lazy rendering and zero layout jumps.

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'),
              ),
            );
          },
        ),
      ),
    );
  }
}
19
likes
150
points
184
downloads

Publisher

verified publisherhensell.dev

Weekly Downloads

A Flutter widget that mimics Wrap layout behavior with lazy rendering and zero layout jumps.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on lazy_wrap