{"id":15008667,"url":"https://github.com/drunkonbytes/flutter_animated_counter","last_synced_at":"2026-01-11T04:49:07.103Z","repository":{"id":56826072,"uuid":"324107721","full_name":"DrunkOnBytes/flutter_animated_counter","owner":"DrunkOnBytes","description":"A collection of animarted counters from #FlutterCounterChallenge2020","archived":false,"fork":false,"pushed_at":"2021-04-14T19:08:49.000Z","size":72963,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T16:21:43.059Z","etag":null,"topics":["animation","animations","counter","dart","flutter","flutter-apps"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/animated_counter","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrunkOnBytes.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-12-24T08:35:44.000Z","updated_at":"2024-02-27T09:40:56.000Z","dependencies_parsed_at":"2022-09-20T22:45:45.160Z","dependency_job_id":null,"html_url":"https://github.com/DrunkOnBytes/flutter_animated_counter","commit_stats":null,"previous_names":["ryuukenshi/flutter_animated_counter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrunkOnBytes%2Fflutter_animated_counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrunkOnBytes%2Fflutter_animated_counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrunkOnBytes%2Fflutter_animated_counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrunkOnBytes%2Fflutter_animated_counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrunkOnBytes","download_url":"https://codeload.github.com/DrunkOnBytes/flutter_animated_counter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065541,"owners_count":21041915,"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":["animation","animations","counter","dart","flutter","flutter-apps"],"created_at":"2024-09-24T19:19:56.971Z","updated_at":"2026-01-11T04:49:07.096Z","avatar_url":"https://github.com/DrunkOnBytes.png","language":"Dart","readme":"# animated_counter\n-------------------------------------------------------------\n\nA collection of animated counters sourced during the FlutterCounterChallenge2020.\n\nBlock                      | Circle Wave               |        Creatures\n:-------------------------:|:-------------------------:|:-------------------------:\n![Block](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/blocks.gif)    | ![Circle Wave](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/circle_wave.gif) |  ![Creatures](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/creatures.gif)\n\nImage Bubble               |Particles                  |        Portrait\n:-------------------------:|:-------------------------:|:-------------------------:\n![Image Bubble](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/image_bubble.gif)   |![Particles](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/particles.gif)      |  ![Portrait](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/portrait.gif)\n\nRotating Bubbles           |        Rotating Planets   |        Volcano\n:-------------------------:|:-------------------------:|:-------------------------:\n![Rotating Bubbles](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/rotating_bubbles.gif) |  ![Rotating Planets](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/rotating_planets.gif)|  ![Volcano](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/volcano.gif)\n\nWave                       |        Pixel             |        Disks\n:-------------------------:|:-------------------------:|:-------------------------:\n![Wave](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/wave.gif)         |  ![Pixel](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/pixel.gif)         |  ![Disks](https://raw.githubusercontent.com/RyuuKenshi/flutter_animated_counter/main/ss/disks.gif)\n\n\n## Features\n\n* Beautiful Smooth Animations\n* Ability to increment, decrement and get current counter value.\n* One stop destination for FlutterCounterChallenge2020 widgets.\n* Completely open source.\n* Added support for Null-Safety\n\n## Supported platforms\n\n* Flutter Android\n* Flutter iOS\n* Flutter web\n* Flutter desktop\n\n## Live preview\n\nhttp://ryuukenshi.github.io/animated_counter\n\nNote: This page is built with flutter-web, hence the animations may not be smooth. For a better user experience, please run the example app on a mobile device.\n\n## Installation\n\nAdd `animated_counter: 1.0.0` to your `pubspec.yaml` dependencies. And import it:\n\n```dart\nimport 'package:collapsible_sidebar/collapsible_sidebar.dart';\n```\n\n## How to use\n-----------------------------------------------\n\nFirst create the object of the Animated Counter you wish to use. Then use its `build()` method to build it. Finally use the `incrementCounter()`, `decrementCounter()` and `getCounter()` methods to control the widget animations.\n\n### Create the object of the animated counter you like\n\n```dart\n  BlocksCounter block = BlocksCounter(initialCounter: 0);\n  DisksCounter disk = DisksCounter(initialCounter: 0);\n  WaveCounter wave = WaveCounter(initialCounter: 0);\n  CircleWaveCounter circle;\n  RotatingBubblesCounter bub = RotatingBubblesCounter(initialCounter: 0, initialColors: [Colors.red, Colors.green, Colors.blue]);\n  RotatingPlanetsCounter plan = RotatingPlanetsCounter(initialCounter: 0, initialColors: [Colors.red, Colors.green, Colors.blue]);\n  CreatureCounter cre;\n  ImageBubbleCounter imgbub = ImageBubbleCounter(initialCounter: 0, image: 'assets/dash.jpg');\n  PortraitCounter por = PortraitCounter(initialCounter: 0, image: 'assets/mattis.jpeg');\n  ParticlesCounter part;\n  VolcanoCounter vol = VolcanoCounter(initialCounter: 0, enableSky: true);\n  PixelCounter pix = PixelCounter(initialCounter: 0);\n\n  @override\n    void initState() {\n      circle = CircleWaveCounter(vsync: this, initialCounter: 0, initialColors: [Colors.red, Colors.green, Colors.blue]);\n      cre = CreatureCounter(vsync: this, initialCounter: 0, initialColors: [Colors.red, Colors.green, Colors.blue]);\n      part = ParticlesCounter(initialCounter: 0, images: ['image1.jpg', 'image2.jpg', 'image3.jpg', 'image4.jpg', 'image5.jpg']);\n      super.initState();\n    }\n```\n`CircleWaveCounter()` and `CreatureCounter()` require a vsync hence the parent class needs to extend `TickerProviderStateMixin` to use these counters.\n\n### Use it in widget tree using `build()` method. Control it using the `incrementCounter()`, `decrementCounter()` and `getCounter()` methods.\n\n```dart\n@override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      body: PageView(\n        children: [\n          block.build(context),\n          disk.build(context),\n          wave.build(context),\n          circle.build(context),\n          bub.build(context),\n          plan.build(context),\n          cre.build(context),\n          imgbub.build(context),\n          por.build(context),\n          part.build(context),\n          vol.build(context),\n          pix.build(context),\n        ],\n      ),\n      floatingActionButton: FloatingActionButton(\n        onPressed: (){\n          setState(() {\n            block.incrementCounter();\n            disk.incrementCounter();\n            wave.incrementCounter();\n            circle.incrementCounter();\n            bub.incrementCounter();\n            plan.incrementCounter();\n            cre.incrementCounter();\n            imgbub.incrementCounter();\n            por.incrementCounter();\n            part.incrementCounter();\n            vol.incrementCounter();\n            pix.incrementCounter();\n          });\n        },\n      ),\n    );\n  }\n```\n\n## License\n--------------------------------------------------------------\n\nApache 2.0\n\n## Credits\n----------------------------------------------------------\nThis package was made possible with code open-sourced by these awesome devs:\n* [Romain Rastel](https://github.com/letsar) 🌟🌟🌟\n* [Mahmoud Ashour](https://github.com/MeitanteiAshour) 🌟\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunkonbytes%2Fflutter_animated_counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrunkonbytes%2Fflutter_animated_counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunkonbytes%2Fflutter_animated_counter/lists"}