lazy_refreshing_listview 0.0.1 copy "lazy_refreshing_listview: ^0.0.1" to clipboard
lazy_refreshing_listview: ^0.0.1 copied to clipboard

A flutter package to handle listview with refresh, and lazy scrolling smartly

# lazy_refreshing_listview

A smart and reusable Flutter widget that enables pull-to-refresh and infinite scroll (lazy loading) for any `ListView` with minimal setup.

---

## 🔧 Example

```dart
@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: const Text('LazyRefreshingListView Example')),
    body: Padding(
      padding: const EdgeInsets.all(10.0),
      child: LazyRefreshingListView(
        onRefresh: _onRefresh,
        onLazyLoad: _onLazyLoad,
        listView: ListView.separated(
          itemCount: items.length,
          separatorBuilder: (_, __) => const SizedBox(height: 10.0),
          itemBuilder: (_, index) {
            final item = items[index];
            return ListTile(
              tileColor: Colors.grey[200],
              title: Text(
                limitWords(item['title'], 5),
                style: const TextStyle(fontWeight: FontWeight.bold),
              ),
              subtitle: Text(limitWords(item['body'], 10)),
            );
          },
        ),
      ),
    ),
  );
}

📄 License #

MIT License © \Faysal Ahmed See the LICENSE file for details.

0
likes
0
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package to handle listview with refresh, and lazy scrolling smartly

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, pull_to_refresh_flutter3

More

Packages that depend on lazy_refreshing_listview