-
Notifications
You must be signed in to change notification settings - Fork 0
Widgets
dema-ristocloud edited this page Nov 26, 2024
·
4 revisions
The InfiniteListView
is the primary widget for displaying infinite scrolling lists.
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. |
InfiniteListView<MyItem>(
bloc: myCustomBloc,
itemBuilder: (context, item) => ListTile(title: Text(item.name)),
loadingWidget: (context) => CircularProgressIndicator(),
errorWidget: (context, error) => Text('Error: $error'),
);