Search packages, repositories and app categories

list_load_more cover
Package detailsv1.0.1

list_load_more

A lazy loading ListView easy to implementation, easy to customize with your own loading animation and support some feature like add, remove single item and focus to item

AndroidiOSWebmacOSWindowsLinux
30-day downloads
13
Likes
57
Pub points
140

Install package

flutter pub add list_load_more

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

ListLoadMore is a Flutter package that simplifies the implementation of lazy loading in ListView, enabling seamless pagination with minimal setup. It supports custom loading animations and offers features like adding or removing individual items and focusing on specific list entries. Designed for ease of use and high customization, it works across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for apps requiring dynamic content loading without sacrificing performance or user experience.

Use cases

  • Infinite scroll feeds
  • Dynamic data lists
  • Customizable loading indicators
  • Real-time data updates
  • User-driven item management
  • Smooth scrolling experiences

Key features

  • Easy integration with ListView
  • Customizable loading animations
  • Support for item add/remove
  • Focus control on specific items
  • Cross-platform compatibility
  • Minimal boilerplate code

Suitable for

  • Developers building paginated lists
  • Apps with dynamic content
  • UI-heavy applications needing smooth loading
  • Teams prioritizing rapid development
  • Projects requiring customizable loading states
  • Multi-platform Flutter apps

Considerations

  • Requires manual handling of data source logic
  • Limited built-in error handling
  • Custom animations may impact performance if not optimized
  • Not ideal for very large datasets without additional optimizations
  • Depends on external state management for complex scenarios

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

A beautiful ListLoadMore easy to use and customize.

List Load More

DEMO

Usage

Simple implementation:
        final GlobalKey<ListLoadMoreState> _key = GlobalKey();
        ListLoadMore<Employee>(
            key: _key
            status: ListLoadMoreStatus.none,
            total: totalItem,
            itemBuilder: (item, index) => _employeeWidget(item),
            onLoadMore: (int currentTotal) async {
              // call your API load more here with currentTotal is total item we have
            },
            onRefresh: () async {
              // call API refresh here
            },
        )
Then you can add your new items to ListLoadMore:
       _key.currentState?.addData(yourNewItemList);
Or you can add single, remove single item:
       _key.currentState?.addItem(item: yourItem, index: 0);
       _key.currentState?.removeItem(index: 0);
You can focus to specific index:
       _key.currentState?.focusToIndex(index);

License

Copyright (c) 2021 Tuannvm

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.