{"id":23897930,"url":"https://github.com/byteszero/loadany","last_synced_at":"2026-01-11T04:07:41.637Z","repository":{"id":56834109,"uuid":"198455734","full_name":"BytesZero/loadany","owner":"BytesZero","description":"Flutter load more package , support ListView、GridView、Slivers","archived":false,"fork":false,"pushed_at":"2021-05-12T02:32:41.000Z","size":8972,"stargazers_count":26,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T14:46:13.393Z","etag":null,"topics":["fluter-loadmore","flutter","flutter-package","loadany"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/loadany","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BytesZero.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}},"created_at":"2019-07-23T15:15:00.000Z","updated_at":"2023-08-14T05:56:37.000Z","dependencies_parsed_at":"2022-09-09T19:11:17.977Z","dependency_job_id":null,"html_url":"https://github.com/BytesZero/loadany","commit_stats":null,"previous_names":["byteszero/loadany","yy1300326388/loadany"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Floadany","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Floadany/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Floadany/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Floadany/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BytesZero","download_url":"https://codeload.github.com/BytesZero/loadany/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248260169,"owners_count":21074207,"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":["fluter-loadmore","flutter","flutter-package","loadany"],"created_at":"2025-01-04T17:19:13.336Z","updated_at":"2026-01-11T04:07:40.895Z","avatar_url":"https://github.com/BytesZero.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoadAny\n\nA new Flutter loads more package.\n\n## [Website](https://yy1300326388.github.io/loadany_web/)\n\n[中文说明](https://github.com/yy1300326388/loadany/tree/master/README_CN.md)\n\n[![Codemagic build status](https://api.codemagic.io/apps/5d561d3a6a6c3600097b43a6/5d561d3a6a6c3600097b43a5/status_badge.svg)](https://codemagic.io/apps/5d561d3a6a6c3600097b43a6/5d561d3a6a6c3600097b43a5/latest_build)\n\n## Support\n\n* CustomScrollView\n* SliverListView\n* SliverGridView\n* SliverListView substitute ListView\n* SliverGridView substitute GridView\n* Custom loading style\n* External nested RefreshIndicator\n* Feed streaming\n\n## Usage\n\n- Add LoadAny\n\n```Dart\nimport 'package:loadany/loadany.dart';\n```\n\n```Dart\nLoadStatus status = LoadStatus.normal;\n\nLoadAny(\n  onLoadMore: getLoadMore,\n  status: status,\n  footerHeight: 40,\n  endLoadMore: true,\n  bottomTriggerDistance: 200,\n  child: CustomScrollView(\n    slivers: \u003cWidget\u003e[\n      SliverGrid(...),\n      SliverList(...),\n    ],\n  ),\n)\n```\n\n```Dart\n/// Load More Get Data\nFuture\u003cvoid\u003e getLoadMore() async {\n    setState(() {\n      status = LoadStatus.loading;\n    });\n    Timer.periodic(Duration(milliseconds: 5000), (Timer timer) {\n      timer.cancel();\n      int length = list.length;\n      for (var i = 1; i \u003c 11; ++i) {\n        list.add(length + i);\n      }\n    \n      if (length \u003e 80) {\n        status = LoadStatus.completed;\n      } else if (length \u003e= 50 \u0026\u0026 length \u003c 70) {\n        status = LoadStatus.error;\n      } else {\n        status = LoadStatus.normal;\n      }\n      setState(() {});\n    });\n}\n```\n\n## Getting Started\n\n[Getting Started](https://github.com/yy1300326388/loadany/tree/master/example)\n\n## Screenshot\n\n* Loading\n\n\u003cimg src=\"https://raw.githubusercontent.com/yy1300326388/loadany/develop/example/images/Kapture%2001.gif\" width=\"220\"/\u003e\n\n* Error\n\n\u003cimg src=\"https://raw.githubusercontent.com/yy1300326388/loadany/develop/example/images/Kapture%2002.gif\" width=\"220\"/\u003e\n\n* Completed\n\n\u003cimg src=\"https://raw.githubusercontent.com/yy1300326388/loadany/develop/example/images/Kapture%2003.gif\" width=\"220\"/\u003e\n\n## Issues and feedback\n\nPlease file [issues](https://github.com/yy1300326388/loadany/issues/new) to send feedback or report a bug. Thank you!\n\n\n### 关注我\n\n- 遇到问题可以找我帮助解决（联系方式在 [`GitHub`](https://github.com/yy1300326388) 主页）\n- 持续分享优质的 `Flutter` 文章和视频\n- 不定期分享 `Flutter` 开发小技巧\n- 百万级 `Flutter` 应用架构经验\n\n\n\u003cp\u003e\n  \u003ca href=\"https://github.com/yy1300326388\"\u003e\n    \u003cimg width=\"200\" alt=\"github\" src=\"https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/follow/github_follow.png\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://juejin.cn/user/764915820276439\"\u003e\n    \u003cimg width=\"200\" alt=\"juejin\" src=\"https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/follow/juejin_follow.png\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://space.bilibili.com/1698847208\"\u003e\n    \u003cimg width=\"200\" alt=\"csdn\" src=\"https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/follow/bilibili_follow.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteszero%2Floadany","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteszero%2Floadany","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteszero%2Floadany/lists"}