We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a17737 commit 8110028Copy full SHA for 8110028
README.md
@@ -27,6 +27,20 @@ There are two required parameters:
27
- itemBuilder: requires a widget and gives you the item of type \<T\> to be displayed
28
29
```dart
30
+
31
+ // mocking a network call
32
+ Future<List<String>> pageData(int previousCount) async {
33
+ await Future.delayed(Duration(seconds: 0, milliseconds: 2000));
34
+ List<String> dummyList = List();
35
+ if (previousCount < 30) {
36
+ // stop loading after 30 items
37
+ for (int i = previousCount; i < previousCount + _COUNT; i++) {
38
+ dummyList.add('Item $i');
39
+ }
40
41
+ return dummyList;
42
43
44
@override
45
Widget build(BuildContext context) {
46
return Scaffold(
0 commit comments