{"id":32307506,"url":"https://github.com/seosh817/easy_debounce_throttle","last_synced_at":"2026-02-23T11:34:59.835Z","repository":{"id":58431078,"uuid":"520780215","full_name":"seosh817/easy_debounce_throttle","owner":"seosh817","description":"An easy-to-use flutter package that provides debounce and throttle with Stream and WidgetBuilder.","archived":false,"fork":false,"pushed_at":"2023-03-01T15:10:09.000Z","size":22414,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-23T07:28:30.699Z","etag":null,"topics":["debounce","flutter-package","throttle"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/easy_debounce_throttle","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/seosh817.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":"2022-08-03T07:28:27.000Z","updated_at":"2024-06-24T12:06:51.000Z","dependencies_parsed_at":"2023-01-30T23:00:32.348Z","dependency_job_id":null,"html_url":"https://github.com/seosh817/easy_debounce_throttle","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/seosh817/easy_debounce_throttle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seosh817%2Feasy_debounce_throttle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seosh817%2Feasy_debounce_throttle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seosh817%2Feasy_debounce_throttle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seosh817%2Feasy_debounce_throttle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seosh817","download_url":"https://codeload.github.com/seosh817/easy_debounce_throttle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seosh817%2Feasy_debounce_throttle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29741634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["debounce","flutter-package","throttle"],"created_at":"2025-10-23T07:19:01.337Z","updated_at":"2026-02-23T11:34:59.818Z","avatar_url":"https://github.com/seosh817.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003eEasy Debounce Throttle\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://flutter.dev\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Platform-Flutter-02569B?logo=flutter\"\n      alt=\"Platform\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://pub.dartlang.org/packages/easy_debounce_throttle\"\u003e\n    \u003cimg src=\"https://img.shields.io/pub/v/easy_debounce_throttle.svg\"\n      alt=\"Pub Package\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/seosh817/easy_debounce_throttle/actions/workflows/main.yml\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/seosh817/easy_debounce_throttle/main.yml?branch=release/1.0.0\u0026logo=github\"\n      alt=\"Build Status\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/seosh817/easy_debounce_throttle\"\n      alt=\"License: MIT\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\u003cbr\u003e\n\n\u003cp align=\"center\"\u003eAn easy-to-use flutter package that provides debounce and throttle with Stream and WidgetBuilder.\u003c/p\u003e\n\n\n## Usage\n\nIf you want to subscribe to debounce, throttle events with Stream, use `EasyDebounce`, `EasyThrottle`\n\nyou should call the `close()` method to avoid memory leak\n\n\n### EasyDebounce\n\n```dart\n final EasyDebounce _easyDebounce = EasyDebounce(delay: const Duration(milliseconds: 1000));\n final TextEditingController _textController = TextEditingController();\n \n @override\n void initState() {\n super.initState();\n _textController.addListener(() {\n   _easyDebounce.debounce(_textController.text);\n });\n _easyDebounce.listen((data) {\n   setState(() {\n     _debounceText = '$data';\n   });\n });\n }\n \n @override\n void dispose() {\n _easyDebounce.close();\n super.dispose();\n}\n```\n\n### EasyThrottle\n\n```dart\n final EasyThrottle _easyThrottle = EasyThrottle(delay: const Duration(milliseconds: 1000));\n final TextEditingController _textController = TextEditingController();\n \n @override\n void initState() {\n super.initState();\n _textController.addListener(() {\n   _easyThrottle.throttle(_textController.text);\n });\n _easyThrottle.listen((data) {\n   setState(() {\n     _throttleText = '$data';\n   });\n });\n }\n \n @override\n void dispose() {\n _easyThrottle.close();\n super.dispose();\n }\n```\n\n\nIf you want to receive debounce and throttle events from methods such as `onPressed` callbacks with `WidgetBuilder`, use `EasyDebounceBuilder` and `EasyThrottleBuilder`.\n\n`EasyDebounceBuilder` and `EasyThrottleBuilder` internally disposes the stream, so there is no need to call the `close()` method.\n\n### EasyDebounceBuilder\n\n```dart\nEasyDebounceBuilder(\n    delay: const Duration(milliseconds: 1000),\n    builder: (context, debounce) {\n      return TextButton(\n          onPressed: () =\u003e debounce(() =\u003e _increaseDebounceCount()),\n       // onPressed: () {\n       //   debounce(() {\n       //     _increaseDebounceCount();\n       //   });\n       // },\n          child: Text(\n            'increase debounce count',\n            style: kNotoSansBold14.copyWith(color: Colors.white),\n          ));\n    }),\n```\n\n### EasyThrottleBuilder\n\n```dart\nEasyThrottleBuilder(\n    delay: const Duration(milliseconds: 1000),\n    builder: (context, throttle) {\n      return TextButton(\n          onPressed: () =\u003e throttle(() =\u003e _increaseThrottleCount()),\n       // onPressed: () {\n       //   throttle(() {\n       //     _increaseThrottleCount();\n       //   });\n       // },\n          child: Text(\n            'increase throttle count',\n            style: kNotoSansBold14.copyWith(color: Colors.white),\n          ));\n    }),\n```\n\n## Examples\n\nAn example can be found in the example directory of this repository.\n\nA list of detailed examples can be found in this [Examples Repository](https://github.com/seosh817/easy_debounce_throttle/tree/master/example)\n\n\n|  EasyDebounce |  EasyThrottle |\n|---|---|\n|\u003cimg src=\"https://github.com/seosh817/easy_debounce_throttle/blob/release/1.0.0/screenshots/easy_debounce.gif?raw=true\" width=\"300\"\u003e| \u003cimg src=\"https://github.com/seosh817/easy_debounce_throttle/blob/release/1.0.0/screenshots/easy_throttle.gif?raw=true\" width=\"300\"\u003e|\n\n|  EasyDebounceBuilder |  EasyThrottleBuilder |\n|---|---|\n|\u003cimg src=\"https://github.com/seosh817/easy_debounce_throttle/blob/release/1.0.0/screenshots/easy_debounce_builder.gif?raw=true\" width=\"300\"\u003e| \u003cimg src=\"https://github.com/seosh817/easy_debounce_throttle/blob/release/1.0.0/screenshots/easy_throttle_builder.gif?raw=true\" width=\"300\"\u003e|\n## Installing\n\n### 1. Depend on it\n\nAdd this to your package's `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  easy_debounce_throttle: ^1.0.0\n```\n\nor\n\n```\n$ flutter pub add easy_debounce_throttle\n```\n\n### 2. Install it\n\nYou can install packages from the command line:\n\n```\n$ flutter pub get\n```\n\n### 3. Import it\n\nNow in your `Dart` code, you can use:\n\n```dart\nimport 'package:easy_debounce_throttle/easy_debounce_throttle.dart';\n```\n\n\n## License\n```\nMIT License\n\nCopyright (c) 2022 seosh817\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\nall copies 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\nTHE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseosh817%2Feasy_debounce_throttle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseosh817%2Feasy_debounce_throttle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseosh817%2Feasy_debounce_throttle/lists"}