Skip to content

Commit 74cab2b

Browse files
committed
minor fix
1 parent 88e06b0 commit 74cab2b

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Added custom refresh icon builder parameter
55
* Added mockItemKey param for getting mock item with this key, if T is not used.
66
* Fixed scroll controller assignment
7-
* Fixed triggering fetchData multiple times from VisibilityDetector
87
* Fixed a bug where fetchData was called twice if PaginationItemsStateHandler was used as parent
98
* Updated example app
109
* Updated README.md

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ packages:
129129
path: ".."
130130
relative: true
131131
source: path
132-
version: "1.0.4"
132+
version: "1.0.5"
133133
path:
134134
dependency: transitive
135135
description:

lib/src/paginated_items_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class _PaginatedItemsBuilderState<T> extends State<PaginatedItemsBuilder<T>> {
228228
() => _fetchData(reset: true),
229229
);
230230

231-
final itemName = T.toString();
231+
final itemName = widget.mockItemKey ?? T.toString();
232232

233233
return Center(
234234
child: Row(

0 commit comments

Comments
 (0)