{"id":21196334,"url":"https://github.com/davigmacode/flutter_wx_badge","last_synced_at":"2025-09-11T14:15:31.954Z","repository":{"id":231750778,"uuid":"781771408","full_name":"davigmacode/flutter_wx_badge","owner":"davigmacode","description":"Customizable badge widget to show notifications, shopping cart items, and more with ease.","archived":false,"fork":false,"pushed_at":"2024-04-07T02:54:14.000Z","size":617,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-07T18:41:22.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/wx_badge","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davigmacode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["davigmacode"],"patreon":null,"open_collective":null,"ko_fi":"davigmacode","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.buymeacoffee.com/davigmacode"]}},"created_at":"2024-04-04T02:14:39.000Z","updated_at":"2024-04-15T06:37:54.170Z","dependencies_parsed_at":"2024-04-15T06:51:51.261Z","dependency_job_id":null,"html_url":"https://github.com/davigmacode/flutter_wx_badge","commit_stats":null,"previous_names":["davigmacode/flutter_wx_badge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davigmacode","download_url":"https://codeload.github.com/davigmacode/flutter_wx_badge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652693,"owners_count":20325607,"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-20T19:35:36.789Z","updated_at":"2025-03-14T21:50:01.957Z","avatar_url":"https://github.com/davigmacode.png","language":"Dart","funding_links":["https://github.com/sponsors/davigmacode","https://ko-fi.com/davigmacode","https://www.buymeacoffee.com/davigmacode"],"categories":[],"sub_categories":[],"readme":"[![Pub Version](https://img.shields.io/pub/v/wx_badge)](https://pub.dev/packages/wx_badge) ![GitHub](https://img.shields.io/github/license/davigmacode/flutter_wx_badge) [![GitHub](https://badgen.net/badge/icon/buymeacoffee?icon=buymeacoffee\u0026color=yellow\u0026label)](https://www.buymeacoffee.com/davigmacode) [![GitHub](https://badgen.net/badge/icon/ko-fi?icon=kofi\u0026color=red\u0026label)](https://ko-fi.com/davigmacode)\n\nCustomizable badge widget to show notifications, shopping cart items, and more with ease.\n\n[![Preview](https://github.com/davigmacode/flutter_wx_badge/raw/main/media/preview.gif)](https://davigmacode.github.io/flutter_wx_badge)\n\n[Demo](https://davigmacode.github.io/flutter_wx_badge)\n\n## Usage\n\nTo read more about classes and other references used by `wx_badge`, see the [API Reference](https://pub.dev/documentation/wx_badge/latest/).\n\n```dart\nWxBadge(\n  hidden: count == 0,\n  position: WxBadgePosition.topRight,\n  offset: const Offset(8, -8),\n  style: WxBadgeStyle.circle(\n    borderWidth: 2,\n    borderStyle: BorderStyle.solid,\n    borderColor: Theme.of(context).colorScheme.surface,\n    backgroundColor: Colors.red,\n    padding: const EdgeInsets.all(6),\n  ),\n  content: Text(\n    count.toString(),\n    key: ValueKey(count),\n    style: const TextStyle(height: 1.15),\n  ),\n  transition: AnimatedSwitcherTransitions.zoomOut,\n  child: const WxAvatar(\n    image: NetworkImage('https://i.pravatar.cc/50?u=2'),\n    elevation: 3.0,\n    backgroundColor: Colors.red,\n    child: Text('Wx'),\n  ),\n)\n\nWxBadge(\n  animated: true,\n  position: WxBadgePosition.bottomRight,\n  offset: const Offset(1, 1),\n  style: WxBadgeStyle.circle(\n    radius: 5,\n    borderWidth: 2,\n    borderStyle: BorderStyle.solid,\n    borderColor: Theme.of(context).colorScheme.surface,\n    backgroundColor: online ? Colors.green : Colors.red,\n    padding: const EdgeInsets.symmetric(\n      horizontal: 5,\n      vertical: 2,\n    ),\n  ),\n  child: const WxAvatar.circle(\n    image: NetworkImage('https://i.pravatar.cc/50?u=20'),\n    borderWidth: 2,\n    borderOffset: 3,\n    borderStyle: BorderStyle.solid,\n    borderColor: Colors.blue,\n    backgroundColor: Colors.red,\n    child: Text('Wx'),\n  ),\n)\n```\n\n## Sponsoring\n\n\u003ca href=\"https://www.buymeacoffee.com/davigmacode\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"45\"\u003e\u003c/a\u003e\n\u003ca href=\"https://ko-fi.com/davigmacode\" target=\"_blank\"\u003e\u003cimg src=\"https://storage.ko-fi.com/cdn/brandasset/kofi_s_tag_white.png\" alt=\"Ko-Fi\" height=\"45\"\u003e\u003c/a\u003e\n\nIf this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavigmacode%2Fflutter_wx_badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavigmacode%2Fflutter_wx_badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavigmacode%2Fflutter_wx_badge/lists"}