{"id":15509075,"url":"https://github.com/frezyx/animated_icon_button","last_synced_at":"2025-04-23T02:26:45.757Z","repository":{"id":50046681,"uuid":"280379495","full_name":"Frezyx/animated_icon_button","owner":"Frezyx","description":":rainbow: Flutter package to create custom animated IconButton. Includes all available Icons. ","archived":false,"fork":false,"pushed_at":"2021-06-05T14:50:37.000Z","size":4950,"stargazers_count":23,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-23T04:35:08.313Z","etag":null,"topics":["animatedbutton","animatedicons","animation","button","buttons","dart","flutter","flutter-android","flutter-animation","flutter-ios","flutter-material","flutter-package","flutter-ui","flutter-widget","iconbutton","widget","widget-library"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/animated_icon_button","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/Frezyx.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":"2020-07-17T09:10:06.000Z","updated_at":"2024-09-03T10:57:04.000Z","dependencies_parsed_at":"2022-09-13T08:00:42.739Z","dependency_job_id":null,"html_url":"https://github.com/Frezyx/animated_icon_button","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frezyx%2Fanimated_icon_button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frezyx%2Fanimated_icon_button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frezyx%2Fanimated_icon_button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frezyx%2Fanimated_icon_button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frezyx","download_url":"https://codeload.github.com/Frezyx/animated_icon_button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250356524,"owners_count":21417104,"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":["animatedbutton","animatedicons","animation","button","buttons","dart","flutter","flutter-android","flutter-animation","flutter-ios","flutter-material","flutter-package","flutter-ui","flutter-widget","iconbutton","widget","widget-library"],"created_at":"2024-10-02T09:41:18.600Z","updated_at":"2025-04-23T02:26:45.739Z","avatar_url":"https://github.com/Frezyx.png","language":"Dart","readme":"\u003ch1 align=\"center\"\u003eanimated_icon_button \u003c/h1\u003e\n\u003ch2 align=\"center\"\u003e  😊 Flutter package to create custom \u003cstrong\u003eanimated\u003c/strong\u003e IconButton.\u003c/br\u003e\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\n😵 \u003cstrong\u003eIncludes all available icons.\u003c/strong\u003e Based on native IconButton.\n\u003c/p\u003e\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src='https://travis-ci.com/Frezyx/animated_icon_button.svg?branch=master'\u003e\n\u003cimg src='https://img.shields.io/badge/License-MIT-yellow.svg'\u003e\n\u003cimg src='https://img.shields.io/pub/v/animated_icon_button.svg'\u003e\n\u003cimg src='https://img.shields.io/github/stars/Frezyx/animated_icon_button?style=social'\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/Frezyx/animated_icon_button/blob/master/example/rep_files/preview.gif?raw=true\" width=\"270\"\u003e\u003c/p\u003e\n\n## Breaking Change\nAfter `1.0.2` version you can use multiple icons.\n\n## Getting Started\nFollow these steps to use this library\n\n### Add dependency\n\n```yaml\ndependencies:\n  animated_icon_button: ^1.0.2 #latest version\n```\n\n### Add import package\n\n```dart\nimport 'package:animated_icon_button/animated_icon_button.dart';\n```\n\n### Easy to use\nSimple example of use AnimatedIconButton\u003cbr\u003e\nPut this code in your project at an screen and wait for magic 😊\n```dart\n    AnimatedIconButton(\n        onPressed: () =\u003e print('all icons pressed'),\n        icons: [\n            AnimatedIconButtonEntry(\n                icon: Icon(Icons.add),\n                onPressed: () =\u003e print('add pressed'),\n            ),\n            AnimatedIconButtonEntry(\n                icon: Icon(Icons.close),\n            ),\n        ],\n    ),\n```\n\n\n### More icons\nNow you can use more than 2 icons\nAdd new icons to your list and they will change one by one\n\n```dart\n    AnimatedIconButton(\n        size: 35,\n        onPressed: () {\n            print('all icons pressed');\n        },\n        duration: const Duration(milliseconds: 200),\n        icons: \u003cAnimatedIconButtonEntry\u003e[\n            AnimatedIconButtonEntry(\n                icon: Icon(\n                    Icons.mic,\n                    color: Colors.purple,\n                ),\n                onPressed: () =\u003e print('mic pressed'),\n                backgroundColor: Colors.white,\n            ),\n            AnimatedIconButtonEntry(\n                icon: Icon(\n                    Icons.g_translate,\n                    color: Colors.purple,\n                ),\n                backgroundColor: Colors.white,\n            ),\n            AnimatedIconButtonEntry(\n                icon: Icon(\n                    Icons.collections_sharp,\n                    color: Colors.purple,\n                ),\n                backgroundColor: Colors.white,\n            ),\n        ],\n    ),\n```\n\n### Custom animation controller\n\nIn order to animate your icons in a custom way, like on text changed or when pressing a button, just use the ```animationController``` property as follows. \u003c/br\u003e\n\n```dart\n    var animationController = AnimationController(\n        vsync: this,\n        duration: Duration(milliseconds: 200),\n        reverseDuration: Duration(milliseconds: 200),\n    );\n\n    AnimatedIconButton(\n        animationController: animationController,\n        size: 35,\n        onPressed: () {\n            print('all icons pressed');\n        },\n        duration: const Duration(milliseconds: 200),\n        icons: \u003cAnimatedIconButtonEntry\u003e[\n            AnimatedIconButtonEntry(\n                icon: Icon(\n                    Icons.mic,\n                    color: Colors.purple,\n                ),\n                onPressed: () =\u003e print('mic pressed'),\n                backgroundColor: Colors.white,\n            ),\n            AnimatedIconButtonEntry(\n                icon: Icon(\n                    Icons.g_translate,\n                    color: Colors.purple,\n                ),\n                backgroundColor: Colors.white,\n            ),\n            AnimatedIconButtonEntry(\n                icon: Icon(\n                    Icons.collections_sharp,\n                    color: Colors.purple,\n                ),\n                backgroundColor: Colors.white,\n            ),\n        ],\n    ),\n```\n\nThen, whenever you want, execute your ```animationController.forward()``` and ```animationController.reverse()``` methods to get your icons animated.\n\nDon't forget when you use this property ```duration``` is not used, so it can be emitted.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrezyx%2Fanimated_icon_button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrezyx%2Fanimated_icon_button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrezyx%2Fanimated_icon_button/lists"}