Skip to content

Widgets

dema-ristocloud edited this page Nov 26, 2024 · 4 revisions

Table of Contents

Infinite List View

The InfiniteListView is the primary widget for displaying infinite scrolling lists.


Key Properties

Property Type Description
bloc InfiniteListBloc<T> The BLoC managing the list data.
itemBuilder Widget Function(...) Builds each item in the list.
loadingWidget Widget Function(...) Displays a loading indicator.
errorWidget Widget Function(...) Displays an error message.

Example

InfiniteListView<MyItem>(
    bloc: myCustomBloc,
    itemBuilder: (context, item) => ListTile(title: Text(item.name)),
    loadingWidget: (context) => CircularProgressIndicator(),
    errorWidget: (context, error) => Text('Error: $error'),
);

Infinite List Bloc Documentation

Overview

Core Concepts

Widgets

Examples

Additional Information

Clone this wiki locally