{"id":13551407,"url":"https://github.com/yako-dev/flutter_badges","last_synced_at":"2025-05-15T16:06:32.757Z","repository":{"id":38010436,"uuid":"143257953","full_name":"yako-dev/flutter_badges","owner":"yako-dev","description":"A flutter package for creating badges.","archived":false,"fork":false,"pushed_at":"2023-12-22T09:23:08.000Z","size":8766,"stargazers_count":733,"open_issues_count":12,"forks_count":134,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-07T21:14:13.082Z","etag":null,"topics":["android","badge","chips","dart","flutter","ios","mobile","ui","ui-components","widget"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/badges","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/yako-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-08-02T07:22:42.000Z","updated_at":"2025-03-26T04:10:02.000Z","dependencies_parsed_at":"2024-03-17T01:27:51.683Z","dependency_job_id":"8b60aca9-25a3-45e2-9ff1-d885be8e4114","html_url":"https://github.com/yako-dev/flutter_badges","commit_stats":{"total_commits":90,"total_committers":14,"mean_commits":6.428571428571429,"dds":0.2666666666666667,"last_synced_commit":"69958a3a2d6d5dd108393832acde6bda06bd10bc"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter_badges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter_badges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter_badges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yako-dev%2Fflutter_badges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yako-dev","download_url":"https://codeload.github.com/yako-dev/flutter_badges/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374470,"owners_count":22060611,"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":["android","badge","chips","dart","flutter","ios","mobile","ui","ui-components","widget"],"created_at":"2024-08-01T12:01:47.645Z","updated_at":"2025-05-15T16:06:27.749Z","avatar_url":"https://github.com/yako-dev.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"[![Pub Version](https://img.shields.io/pub/v/badges?color=blueviolet)](https://pub.dev/packages/badges)\n[![popularity](https://img.shields.io/pub/popularity/badges?logo=dart)](https://pub.dev/packages/badges/score)\n[![likes](https://img.shields.io/pub/likes/badges?logo=dart)](https://pub.dev/packages/badges/score)\n![building](https://github.com/yako-dev/flutter_badges/actions/workflows/code-quality-tests.yml/badge.svg)\n[![style: flutter lints](https://img.shields.io/badge/style-flutter__lints-blue)](https://pub.dev/packages/flutter_lints)\n[![Package of the week](https://img.shields.io/badge/Package%20of-the%20week-orange)](https://youtu.be/_CIHLJHVoN8)\n\n\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/yako-dev/flutter_badges/blob/master/images/readme_header.png?raw=true\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/yako-dev/flutter_badges/blob/master/images/showcase.gif?raw=true\" height=\"600px\"\u003e\n\u003c/p\u003e\n\n\n## Installing:\nIn your pubspec.yaml\n```yaml\ndependencies:\n  badges: ^3.1.2\n```\nAttention! In Flutter 3.7 the Badge widget was introduced in the Material library, so to escape the ambiguous imports you need to import the package like this:\n```dart\nimport 'package:badges/badges.dart' as badges;\n```\nand then use the \"badges.Badge\" widget instead of the \"Badge\" widget. The same for all the classes from this package.\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Basic Usage:\n```dart\n    badges.Badge(\n      badgeContent: Text('3'),\n      child: Icon(Icons.settings),\n    )\n```\n## Advanced usage\n```dart\n    badges.Badge(\n      position: badges.BadgePosition.topEnd(top: -10, end: -12),\n      showBadge: true,\n      ignorePointer: false,\n      onTap: () {},\n      badgeContent:\n          Icon(Icons.check, color: Colors.white, size: 10),\n      badgeAnimation: badges.BadgeAnimation.rotation(\n        animationDuration: Duration(seconds: 1),\n        colorChangeAnimationDuration: Duration(seconds: 1),\n        loopAnimation: false,\n        curve: Curves.fastOutSlowIn,\n        colorChangeAnimationCurve: Curves.easeInCubic,\n      ),\n      badgeStyle: badges.BadgeStyle(\n        shape: badges.BadgeShape.square,\n        badgeColor: Colors.blue,\n        padding: EdgeInsets.all(5),\n        borderRadius: BorderRadius.circular(4),\n        borderSide: BorderSide(color: Colors.white, width: 2),\n        borderGradient: badges.BadgeGradient.linear(\n            colors: [Colors.red, Colors.black]),\n        badgeGradient: badges.BadgeGradient.linear(\n            colors: [Colors.blue, Colors.yellow],\n            begin: Alignment.topCenter,\n            end: Alignment.bottomCenter,\n        ),\n        elevation: 0,\n      ),\n      child: Text('Badge'),\n    ),\n```\n\n\u003cbr\u003e\n\n---\n\n## Animations:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/yako-dev/flutter_badges/blob/master/images/badge_animations_preview.gif?raw=true\" height=\"200px\"\u003e\n\u003c/p\u003e\nFrom left to right:\u003cbr\u003e\n1) Color change animation\n2) BadgeAnimation.slide\n3) BadgeAnimation.fade\n4) BadgeAnimation.scale\n5) BadgeAnimation.size\n6) BadgeAnimation.rotation\n\u003cbr\u003e\nAlso, loop animation is available, this will loop the animation until you stop it.\n\u003cbr\u003e\u003cbr\u003e\n\n---\n\n## Shapes:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/yako-dev/flutter_badges/blob/master/images/badge_shapes_preview.png?raw=true\" height=\"120px\"\u003e\n\u003c/p\u003e\nFrom left to right:\u003cbr\u003e\n1) BadgeShape.circle\n2) BadgeShape.square\n3) BadgeShape.twitter\n4) BadgeShape.instagram\n\u003cbr\u003e\u003cbr\u003e\n\n---\n\n## Migration from Badges 2:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/yako-dev/flutter_badges/blob/master/images/migration_guide.png?raw=true\"\u003e\n\u003c/p\u003e\n\n## Check out other Yako packages:\n\n[Badges](https://pub.dev/packages/badges)\n\n[Settings UI](https://pub.dev/packages/settings_ui)\n\n[Status Alert](https://pub.dev/packages/status_alert)\n\n[Full Screen Menu](https://pub.dev/packages/full_screen_menu)\n\n[Diagonal decoration](https://pub.dev/packages/diagonal_decoration) \n\n[Yako Yheme Switch](https://pub.dev/packages/yako_theme_switch) \n\nand more to come!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyako-dev%2Fflutter_badges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyako-dev%2Fflutter_badges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyako-dev%2Fflutter_badges/lists"}