{"id":32271765,"url":"https://github.com/yusanlou/bnrefreshindicator","last_synced_at":"2026-01-11T13:34:39.804Z","repository":{"id":56826676,"uuid":"182220171","full_name":"yusanlou/BnRefreshIndicator","owner":"yusanlou","description":"A system based refresh \u0026 load component.","archived":false,"fork":false,"pushed_at":"2019-05-23T03:03:11.000Z","size":8306,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T22:57:51.798Z","etag":null,"topics":["android","dart","flutter","ios","loadmore","refresh"],"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/yusanlou.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-04-19T07:16:20.000Z","updated_at":"2020-03-20T09:18:51.000Z","dependencies_parsed_at":"2022-09-20T22:01:57.166Z","dependency_job_id":null,"html_url":"https://github.com/yusanlou/BnRefreshIndicator","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/yusanlou/BnRefreshIndicator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusanlou%2FBnRefreshIndicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusanlou%2FBnRefreshIndicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusanlou%2FBnRefreshIndicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusanlou%2FBnRefreshIndicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusanlou","download_url":"https://codeload.github.com/yusanlou/BnRefreshIndicator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusanlou%2FBnRefreshIndicator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280528622,"owners_count":26345643,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","dart","flutter","ios","loadmore","refresh"],"created_at":"2025-10-22T22:57:50.389Z","updated_at":"2025-10-22T22:57:51.893Z","avatar_url":"https://github.com/yusanlou.png","language":"Dart","readme":"# bn_refresh_indicator\n\nA system based refresh \u0026 load component.\n\n## Feature\n\n- System based, no intrusion.\n- Support automatic refresh, manual control refresh.\n- Support no data display.\n\n## How To Use It .\n\nIt's basically the same as the native RefreshIndicator.\n\n```dart\nBnRefreshIndicator(\n          refreshController: refreshController, // Control refresh action\n          autoRefresh: false,\n          nodataWidget: Text('there is no data'),\n          onRefresh: () async {\n            await Future.delayed(Duration(seconds: 3));\n            more = !more;\n            _counter = 10;\n            if (mounted) {\n              setState(() {});\n            }\n            return more;\n          },\n          onLoadMore: () async {\n            await Future.delayed(Duration(seconds: 3));\n            _counter += 10;\n            if (mounted) {\n              setState(() {});\n            }\n            return false;\n          },\n          child: ListView.builder(\n            // physics: BouncingScrollPhysics,\n            itemBuilder: (context, index) {\n              return GestureDetector(\n                child: Card(\n                  child: Center(\n                    child: Text('index -- $index'),\n                  ),\n                ),\n                onTap: () {\n                  Navigator.push(context, MaterialPageRoute(builder: (context) {\n                    return MyHomePage(title: 'Second page');\n                  }));\n                },\n              );\n            },\n            itemCount: _counter,\n            itemExtent: 88.0,\n          ),\n        )\n```\n\n\n\n## Reference\n\n![refresh](\u003chttps://github.com/BackNotGod/BnRefreshIndicator/blob/master/bn_refresh_indicator/example/refregif_low.gif\u003e)\n\n\n\n## Extension\n\nIt's very low intrusive, and if you don't need to load it just keep refresh, just Set `onLoadMore` to null or not assign it a value.\n\n## Planned\n\nSupport for custom refresh animations.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusanlou%2Fbnrefreshindicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusanlou%2Fbnrefreshindicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusanlou%2Fbnrefreshindicator/lists"}