{"id":19785612,"url":"https://github.com/leoncolt/gradient_loading_button","last_synced_at":"2026-02-15T10:11:14.542Z","repository":{"id":56831682,"uuid":"330050712","full_name":"LeonColt/gradient_loading_button","owner":"LeonColt","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-15T04:44:19.000Z","size":356,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T10:59:58.627Z","etag":null,"topics":[],"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/LeonColt.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":"2021-01-16T00:15:35.000Z","updated_at":"2024-07-15T04:44:22.000Z","dependencies_parsed_at":"2022-08-28T20:11:00.795Z","dependency_job_id":null,"html_url":"https://github.com/LeonColt/gradient_loading_button","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonColt%2Fgradient_loading_button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonColt%2Fgradient_loading_button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonColt%2Fgradient_loading_button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonColt%2Fgradient_loading_button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeonColt","download_url":"https://codeload.github.com/LeonColt/gradient_loading_button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945473,"owners_count":20046865,"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":[],"created_at":"2024-11-12T06:15:14.311Z","updated_at":"2026-02-15T10:11:14.470Z","avatar_url":"https://github.com/LeonColt.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loading Button\n\nA simple button that gives you the possibility to\ntransform into a circular one and shows a progress indicator and with success and error state.\n\n![](loading_button_animation.gif)\n\n## How to use\n\n```dart\nContainer(\n  width: 200,\n  height: 60,\n  child: LoadingButton(\n    gradient: new LinearGradient(\n      colors: \u003cColor\u003e[\n        Colors.red,\n        Colors.blue,\n      ]\n    ),\n    style: new ButtonStyle(\n      shape: MaterialStateProperty.all(new RoundedRectangleBorder(\n        borderRadius:\n            const BorderRadius.all(const Radius.circular(15.0)),\n      )),\n    ),\n    strokeWidth: 2,\n    child: Text(\n      \"Sample\",\n      style: TextStyle(\n        color: Colors.white,\n        fontSize: 24,\n      ),\n    ),\n    errorChild: const Icon( Icons.close_sharp, color: Colors.white, ),\n    successChild: const Icon( Icons.check_sharp, color: Colors.white, ),\n    onPressed: ( controller ) async {\n      await controller.loading();\n      await new Future.delayed( const Duration( seconds: 3 ) );\n      if ( Random.secure().nextBool() )\n        await controller.success();\n      else await controller.error();\n    },\n  ),\n),\n```\n\nPlease check the example folder for a simple implementation.\n\n## Changelog\n\nPlease see the [Changelog](CHANGELOG.md) page to know what's recently changed.\n\n## Contributions\n\nFeel free to contribute to this project.\n\nIf you find a bug or want a feature, but don't know how to fix/implement it, please fill an [issue](https://github.com/LeonColt/gradient_loading_button/issues).\nIf you fixed a bug or implemented a new feature, please send a [pull request](https://github.com/LeonColt/gradient_loading_button/pulls).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoncolt%2Fgradient_loading_button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoncolt%2Fgradient_loading_button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoncolt%2Fgradient_loading_button/lists"}