Skip to content

Commit

Permalink
Update organization_search_list.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
ARYPROGRAMMER authored Nov 20, 2024
1 parent c5211e8 commit 83f871e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/widgets/organization_search_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class _OrganizationSearchListState extends State<OrganizationSearchList> {
return VisibilityDetector(
key: Key('orgTile_${widget.model.organizations[index].id}'),
onVisibilityChanged: (VisibilityInfo info) {

Check warning on line 60 in lib/widgets/organization_search_list.dart

View check run for this annotation

Codecov / codecov/patch

lib/widgets/organization_search_list.dart#L60

Added line #L60 was not covered by tests
if (fetchMore != null) {
if (fetchMore != null &&
info.visibleFraction > 0 &&
index == widget.model.organizations.length - 3) {
widget.model.fetchMoreHelper(fetchMore, widget.model.organizations);

Check warning on line 64 in lib/widgets/organization_search_list.dart

View check run for this annotation

Codecov / codecov/patch

lib/widgets/organization_search_list.dart#L62-L64

Added lines #L62 - L64 were not covered by tests
}
},
Expand Down Expand Up @@ -126,7 +128,9 @@ class _OrganizationSearchListState extends State<OrganizationSearchList> {
_refetchCount.value++;
refetch?.call();
} else {
print('Max refetch attempts reached.');
debugPrint(
'Max refetch attempts reached after $_maxRefetch attempts.',
);
}
// } else if (!result.isLoading) {
// widget.model.organizations = OrgInfo().fromJsonToList(
Expand Down

0 comments on commit 83f871e

Please sign in to comment.