{"id":13683935,"url":"https://github.com/altive/awaitable_button","last_synced_at":"2026-01-11T04:46:59.016Z","repository":{"id":52486138,"uuid":"471827535","full_name":"altive/awaitable_button","owner":"altive","description":"A button that displays an indicator during asynchronous processing and  allows callbacks to be executed after completion or exception catch.","archived":false,"fork":false,"pushed_at":"2024-08-02T01:12:03.000Z","size":25387,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-27T09:04:13.040Z","etag":null,"topics":["dart","flutter"],"latest_commit_sha":null,"homepage":"https://altive.dev","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/altive.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-19T22:36:30.000Z","updated_at":"2024-08-02T01:12:06.000Z","dependencies_parsed_at":"2024-01-14T15:26:26.852Z","dependency_job_id":"f0d6295a-6b3d-4866-b8d0-38932f1f0713","html_url":"https://github.com/altive/awaitable_button","commit_stats":null,"previous_names":["altive/awaitable_button"],"tags_count":6,"template":false,"template_full_name":"altive/flutter_app_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altive%2Fawaitable_button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altive%2Fawaitable_button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altive%2Fawaitable_button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altive%2Fawaitable_button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altive","download_url":"https://codeload.github.com/altive/awaitable_button/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224224671,"owners_count":17276428,"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":["dart","flutter"],"created_at":"2024-08-02T14:00:20.668Z","updated_at":"2025-10-23T03:39:53.909Z","avatar_url":"https://github.com/altive.png","language":"Dart","readme":"# Awaitable Button\n\n## Features\n\nButton with indicator display during processing to prevent consecutive hits.\n\n## Web demo for awaitable_button/example\n\nYou can try out the interactive buttons on the demo page below.\n\nhttps://altive.github.io/awaitable_button/\n\n## Getting started\n\n```pubspec.yaml\nawaitable_button: any\n```\n\n## Usage\n```dart\nimport 'package:awaitable_button/awaitable_button.dart';\n```\n\nThis package includes the following buttons.\nUse them according to your style.\n\n- `AwaitableElevatedButton`\n- `AwaitableOutlinedButton`\n- `AwaitableTextButton`\n- `AwaitableFilledButton`\n- `AwaitableFilledTonalButton`\n\n```dart\n@override\nWidget build(BuildContext context) {\n    return AwaitableElevatedButton\u003cString\u003e(\n      // Required\n      onPressed: () {\n        // do something\n      },\n      // Optional\n      whenComplete: (value) {\n        // do something\n      },\n      // Optional\n      onError: (exception, stackTrace) {\n        // do something\n      },\n      // Optional\n      buttonStyle: ElevatedButton.styleFrom(),\n      // Optional\n      indicator: CircularProgressIndicator(),\n      // Optional\n      indicatorColor: Colors.green,\n      // Optional\n      indicatorSize: Size.square(24),\n      // Optional\n      executingChild: const Text('Executing...'),\n      // Required\n      child: const Text('Button'),\n    );\n}\n```\n\n`AwaitableOutlinedButton`, `AwaitableTextButton`, `AwaitableFilledButton` and `AwaitableFilledTonalButton` is exactly the same as for `AwaitableElevatedButton`.\n\n```dart\n@override\nWidget build(BuildContext context) {\n    return AwaitableIconButton\u003cString\u003e(\n      // Required\n      onPressed: () {\n        // do something\n      },\n      // Optional\n      whenComplete: (value) {\n        // do something\n      },\n      // Optional\n      onError: (exception, stackTrace) {\n        // do something\n      },\n      // Optional\n      iconSize: 24,\n      // Optional\n      indicator: CircularProgressIndicator(),\n      // Optional\n      indicatorColor: Colors.green,\n      // Optional\n      indicatorSize: Size.square(24),\n      // Optional\n      executingIcon: const Icon(Icons.timer_sharp),\n      // Required\n      icon: const Icon(Icons.timer),\n    );\n}\n```\n","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltive%2Fawaitable_button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltive%2Fawaitable_button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltive%2Fawaitable_button/lists"}