{"id":21260721,"url":"https://github.com/erf/load_items","last_synced_at":"2025-03-15T06:45:38.544Z","repository":{"id":44548588,"uuid":"395447730","full_name":"erf/load_items","owner":"erf","description":"Load new items when scrolling to the bottom of a ListView or GridView","archived":false,"fork":false,"pushed_at":"2023-12-06T11:19:13.000Z","size":206,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T02:50:30.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-12T21:26:38.000Z","updated_at":"2024-04-09T07:19:47.000Z","dependencies_parsed_at":"2025-01-21T21:47:53.626Z","dependency_job_id":"a1ff91bd-2acf-4f11-b2e1-35beba3b6656","html_url":"https://github.com/erf/load_items","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erf%2Fload_items","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erf%2Fload_items/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erf%2Fload_items/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erf%2Fload_items/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erf","download_url":"https://codeload.github.com/erf/load_items/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695537,"owners_count":20332626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T04:20:19.950Z","updated_at":"2025-03-15T06:45:38.525Z","avatar_url":"https://github.com/erf.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# load_items\n\nLoad new items into either a list or a grid as you scroll down.\n\n![screencast](https://user-images.githubusercontent.com/1562523/129325662-7aa946ab-32a4-4237-8442-cc980fe480e2.mp4)\n\n## Features\n\n* load new items when scrolling to the bottom of a `ListView` or `GridView`\n* pagination support by passing the previous items to `ItemsLoader`\n* add custom widget builders for items, loaders and empty widgets\n* configurable `ListView` and `GridView`\n* configure when to load more via `loadScrollFactor`\n* pull-to-refresh to reload data\n* force refresh using a `Listenable`\n* scroll to top using a `Listenable`\n* fade out bottom if more option\n\n## Example\n\n```dart\nLoadItems\u003cItem\u003e(\n\ttype: LoadItemsType.grid,\n\titemBuilder: (context, Item item, int index) {\n\t\treturn ListTile(title: item.title);\n\t},\n\titemsLoader: (List\u003cItem\u003e currentItems) {\n\t\treturn await Api.fetch({skip: currentItems.length});\n\t},\n\tgridCrossAxisCount: 3,\n)\n```\n\nSee [example](./example) for full list and grid example.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferf%2Fload_items","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferf%2Fload_items","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferf%2Fload_items/lists"}