{"id":13670567,"url":"https://github.com/xuelongqy/flutter_easy_refresh","last_synced_at":"2026-01-11T04:43:52.524Z","repository":{"id":37318431,"uuid":"159474563","full_name":"xuelongqy/flutter_easy_refresh","owner":"xuelongqy","description":"A flutter widget that provides pull-down refresh and pull-up load.","archived":false,"fork":false,"pushed_at":"2024-08-18T11:46:41.000Z","size":391498,"stargazers_count":3984,"open_issues_count":85,"forks_count":649,"subscribers_count":41,"default_branch":"v3","last_synced_at":"2025-05-09T11:50:41.612Z","etag":null,"topics":["easy-refresh","flutter","load-more","refresh"],"latest_commit_sha":null,"homepage":"https://xuelongqy.github.io/flutter_easy_refresh/","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/xuelongqy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://xuelongqy.github.io/flutter_easy_refresh/#/support-me","ko_fi":"xuelongqy"}},"created_at":"2018-11-28T09:14:25.000Z","updated_at":"2025-05-08T13:38:02.000Z","dependencies_parsed_at":"2023-02-17T02:01:09.345Z","dependency_job_id":"46123ba9-2ede-4987-a2b1-ca2784529906","html_url":"https://github.com/xuelongqy/flutter_easy_refresh","commit_stats":{"total_commits":845,"total_committers":15,"mean_commits":"56.333333333333336","dds":0.3266272189349112,"last_synced_commit":"2a8a08ef29f890ba65c8f2f020e8b54943c1ae75"},"previous_names":["xuelongqy/flutter_easyrefresh"],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuelongqy%2Fflutter_easy_refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuelongqy%2Fflutter_easy_refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuelongqy%2Fflutter_easy_refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuelongqy%2Fflutter_easy_refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuelongqy","download_url":"https://codeload.github.com/xuelongqy/flutter_easy_refresh/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253411566,"owners_count":21904151,"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":["easy-refresh","flutter","load-more","refresh"],"created_at":"2024-08-02T09:00:45.529Z","updated_at":"2026-01-11T04:43:52.480Z","avatar_url":"https://github.com/xuelongqy.png","language":"Dart","funding_links":["https://xuelongqy.github.io/flutter_easy_refresh/#/support-me","https://ko-fi.com/xuelongqy"],"categories":["UI库"],"sub_categories":[],"readme":"# flutter_easy_refresh\n\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](/LICENSE)\n[![Platform Flutter](https://img.shields.io/badge/platform-Flutter-blue.svg)](https://flutter.dev)\n[![Pub](https://img.shields.io/pub/v/easy_refresh)](https://pub.dev/packages/easy_refresh)\n\n## English | [中文](https://github.com/xuelongqy/flutter_easy_refresh/blob/v3/README_CN.md)\n\nJust like the name, EasyRefresh can easily implement pull-down refresh and pull-up load on Flutter applications. It supports almost all Flutter Scrollable widgets. Its function is very similar to Android's SmartRefreshLayout, and it also absorbs the advantages of many third-party libraries. EasyRefresh integrates various styles of Header and Footer, but it has no limitations, you can easily customize it. Using Flutter's powerful animations, even just a simple control can be done. The goal of EasyRefresh is to create a powerful, stable and mature pull-to-refresh framework for Flutter.\n\n### [Online demo](https://xuelongqy.github.io/flutter_easy_refresh/)\n### [APK download](https://github.com/xuelongqy/flutter_easy_refresh/releases)\n### [API reference](https://pub.dev/documentation/easy_refresh/latest/)\n\n## Features:\n- Supports all scrollable widgets\n- Scrolling physics scope, exactly matching scrollable widgets\n- Integrate multiple cool Header and Footer\n- Support custom styles to achieve various animation effects\n- Support pull-down refresh, pull-up load (Can be triggered and finished with a controller)\n- Support indicator position setting, combined with listeners can also be placed in any position\n- Support refresh when the page starts, and customize the view\n- Support safe area, no more occlusion\n- Customize scroll parameters to allow lists to have different scrolling feedback and inertia\n\n## Sample\n#### 1. Default constructor\n- In the child scope, all scrolling components will share one physics. If there is scroll nesting, use EasyRefresh.builder or set the scope with ScrollConfiguration\n```dart\n  EasyRefresh(\n    onRefresh: () async {\n      ....\n    },\n    onLoad: () async {\n      ....\n    },\n    child: ListView(),\n  );\n```\n#### 2. Builder constructor\n```dart\n  EasyRefresh.builder(\n    onRefresh: () async {\n      ....\n      return IndicatorResult.success; \n    },\n    onLoad: () async {\n      ....\n    },\n    childBuilder: (context, physics) {\n      return ListView(\n        physics: physics,\n      );\n    },\n  );\n```\n#### 3. Indicator locate\n```dart\n  EasyRefresh(\n    header: Header(\n      position: IndicatorPosition.locator,\n    ),\n    footer: Footer(\n      position: IndicatorPosition.locator,\n    ),\n    onRefresh: () async {\n      ....\n    },\n    onLoad: () async {\n      ....\n      return IndicatorResult.noMore;\n    },\n    child: CustomScrollView(\n      slivers: [\n        SliverAppBar(),\n        const HeaderLocator.sliver(),\n        ...\n        const FooterLocator.sliver(),\n      ],\n    ),\n  );\n```\n#### 4. Use controller\n```dart\n  EasyRefreshController _controller = EasyRefreshController(\n    controlFinishRefresh: true,\n    controlFinishLoad: true,\n  );\n  ....\n  EasyRefresh(\n    controller: _controller,\n    onRefresh: () async {\n      ....\n      _controller.finishRefresh();\n      _controller.resetFooter();\n    },\n    onLoad: () async {\n      ....\n      _controller.finishLoad(IndicatorResult.noMore);\n    },\n    ....\n  );\n  ....\n  _controller.callRefresh();\n  _controller.callLoad();\n```\n#### 5. Specify Header and Footer\n```dart\n  EasyRefresh(\n    header: MaterialHeader(),\n    footer: MaterialFooter(),\n    child: ListView(),\n    ....\n  );\n  // Global\n  EasyRefresh.defaultHeaderBuilder = () =\u003e ClassicHeader();\n  EasyRefresh.defaultFooterBuilder = () =\u003e ClassicFooter();\n```\n#### 6. NestedScrollView\n```dart\n  EasyRefresh.builder(\n    header: MaterialHeader(\n      clamping: true,\n    ),\n    onRefresh: () async {\n      ....\n    },\n    onLoad: () async {\n      ....\n    },\n    childBuilder: (context, physics) {\n      return NestedScrollView(\n        physics: physics,\n        body: ListView(\n          physics: physics,\n        );\n      );\n    },\n  );\n  // or\n  EasyRefresh.builder(\n    header: MaterialHeader(\n      clamping: true,\n      position: IndicatorPosition.locator,\n    ),\n    onRefresh: () async {\n      ....\n    },\n    onLoad: () async {\n      ....\n    },\n    childBuilder: (context, physics) {\n      return NestedScrollView(\n        physics: physics,\n        headerSliverBuilder: (context, innerBoxIsScrolled) {\n          return [\n            const HeaderLocator.sliver(clearExtent: false),\n            ....\n          ];\n        },\n        body: ListView(\n          physics: physics,\n        );\n      );\n    },\n  );\n```\n\n## Feel free to contribute\nOne's maintenance is lonely. If you have good suggestions and changes, feel free to contribute your code. If you have really cool styles, It's even cooler to share with everyone.\n\n#### Thanks to all the people who already contributed!\n\n\u003ca href=\"https://github.com/xuelongqy/flutter_easy_refresh/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=xuelongqy/flutter_easy_refresh\" /\u003e\n\u003c/a\u003e\n\n## QQ Group - 554981921\n#### Into the group of instructions\nThe group is not only solve the problem of EasyRefresh, any Flutter related issues can be discussed. Just as its name, craigslist, as long as there is time, group of Lord will help you solve problems together.\n\n## Thanks \n[SmartRefreshLayout](https://github.com/scwang90/SmartRefreshLayout)  \n[flutter_spinkit](https://github.com/jogboms/flutter_spinkit)  \n\n## Licenses\n\n```\n \nMIT License\n\nCopyright (c) 2018 xuelongqy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuelongqy%2Fflutter_easy_refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuelongqy%2Fflutter_easy_refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuelongqy%2Fflutter_easy_refresh/lists"}