FLUTTER ECOSYSTEM

isacjunior/lazy_loading_list

Lazy-Loading-Widget zum Laden weiterer Elemente anhand des Indexes des Elements, um eine Liste wie bei einer unendlichen Scroll-Funktion zu erweitern.

Projektcover von Lazy-Loading-Liste
Stars
5
Forks
1
Letzter Push (UTC)
10.03.2021
Projektstatus
Aktiv
Isac GitHub avatar
GITHUB User

Isac ↗

Software Engineer at Nubank

Uberlândia - BrazilOffizielle Website ↗
SprachenDartRubySwiftKotlinObjective-C

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 2 Einträge
  • flutter{"sdk":"flutter"}
  • flutter_testEntwicklung{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

lazy_loading_list

Lazy loading Widget to load more by index item to incresent you list like infinite scroll.

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  lazy_loading_list: version

In your library add the following import:

import 'package:lazy_loading_list/lazy_loading_list.dart';

Usage

ListView.builder(
    itemCount: items.length,
    itemBuilder: (BuildContext context, int index) {
        return LazyLoadingList(
            initialSizeOfItems: 10,
            index: index,
            child: buildItem(),
            loadMore: loadMoreItems,
            hasMore: hasMoreToLoad,
        );
    },
),