badges
A package for creating badges. Badges can be used for an additional marker for any widget, e.g. show a number of items in a shopping cart.
3.2.0
356K downloads/mo
#622 most downloaded on pub.dev
yako-dev/flutter_badges
What this package is like to depend on
Last release 4 months ago
10 Apr 2026
Ships unpredictably
gaps range from 3 weeks to 2.6 years
Most releases are documented
notes for 22 of 28 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
30 releases · first in 2018
1 release in the last 12 months
see the full history below
Release timeline
30 releases · Aug 2018 to Apr 2026Releases
latest 30-
3.2.010 Apr 2026Release notes
Open source →Bug Fixes
- Issue #114 — Fixed
showBadge: falsebeing ignored when a loop animation is active.didUpdateWidgetnow handlesshowBadgechanges before any loop-animation guards. - Issue #130 —
showBadge: falsenow hides the badge immediately._animationController.stop()and_appearanceController.stop()are called beforereverse()so the badge does not wait for the animation to play through. - Issue #98 — Fixed border anti-aliasing artifact. Border is now drawn entirely inside the circle via
strokeAlign: BorderSide.strokeAlignInsideinBoxDecoration, preventing background-colour bleed at antialiased edges. - Issue #115 (partial) — Key-based animation re-trigger: setting a
KeyonbadgeContentand changing it now restarts the animation for any widget type, not justTextandIcon.
New Features
BadgeStyle.copyWith— Returns a copy of aBadgeStylewith overridden fields.BadgePosition.centerStart— New named constructor: badge vertically centered on the start (left) side.BadgePosition.centerEnd— New named constructor: badge vertically centered on the end (right) side.BadgeState.animationController/appearanceControllergetters — Public access to the internal animation controllers for advanced use cases (PR #128)._BadgeVisualprivate widget — Extracted badge visual from an inner closure into a properStatelessWidgetso Flutter's element tree can cache it and avoid rebuilding the full subtree on every opacity tick (PR #120).- Minimum-square badge sizing — Single-character text and small-icon badges now maintain correct circular/square proportions (PR #111).
BadgeGradient.gradient()asserts — Addedassertstatements documenting constructor invariants instead of silently force-unwrapping nullable fields.- Controller duration updates —
didUpdateWidgetnow updatesAnimationControllerdurations whenbadgeAnimationduration properties change.
Example App & Docs
- Fixed all lint warnings in
example/(use_super_parameters,prefer_final_fields,curly_braces_in_flow_control_structures,avoid_print,deprecated_member_use). - README: fixed showcase GIF height (
600px→400px). - README: added
hide Badgeimport pattern (issue #123). - Bumped
flutter_lintsto^6.0.0.
- Issue #114 — Fixed
-
3.1.228 Aug 2023Release notes
Open source →This reverts commit bdc035a
- Version update to 3.1.1 and changelog update
Co-authored-by: Daniyil Yakovlev [email protected]
-
fix: remove .flutter-plugin-dependencies from .gitignore
-
Version 3.1.2
Co-authored-by: Vitaliy Hnidenko [email protected]
-
3.1.114 Apr 2023 -
3.1.011 Apr 2023Release notes
Open source →- Add BadgeShape.triangle
- Fix custom shapes deformation depending on the badge content
-
3.0.324 Mar 2023 -
3.0.225 Jan 2023Release notes
Open source →- Due to Badge widget introduction in Material library, the package is refatored to avoid ambiguous imports. badges.Badge used everywhere.
- Readme updated
-
3.0.125 Jan 2023 -
3.0.025 Jan 2023 -
3.0.0-beta.125 Dec 2022 pre-releaseRelease notes
Open source →[3.0.0-beta.1] - [Dec 25, 2022]
- Add onTap for Badge
- Add Twitter and Instagram shapes
- Add size, rotation and color change animation for Badge
- Add loop animation
- Add border gradient
- Add more customization for animation and style
- Breaking changes! Please check the readme for simple migration guide
Release notes
Open source →- Add onTap for Badge
- Add Twitter and Instagram shapes
- Add size, rotation and color change animation for Badge
- Add loop animation
- Add border gradient
- Add more customization for animation and style
- Breaking changes! Please check the readme for simple migration guide
-
2.0.302 Jun 2022 -
2.0.229 Nov 2021Release notes
Open source →- Add
gradientparameter to theBadge - Add
BadgePosition.center()as a new factory constructor for theBadgePosition
- Add
-
2.0.113 May 2021 -
2.0.0-nullsafety.113 Mar 2021 pre-release -
1.2.005 Mar 2021Release notes
Open source →- Breaking change! Deprecated parameter 'Overflow' replaced with 'Clip' for Stack widget.
- Documentation implementation
-
1.1.608 Dec 2020 -
1.1.507 Dec 2020Release notes
Open source →- Add borderSide parameter to customize the badge border
- Fix issue where null border radius was provided
-
1.1.426 Oct 2020Release notes
Open source →- Migrate Android embedding v2, fix overflow issue
- Ignore pointer option for Badge
- Custom border radius for Badge
-
1.1.325 Sep 2020 -
1.1.127 Feb 2020 -
1.1.002 Jul 2019 -
1.0.305 Jun 2019Release notes
Open source →- Fixed a bug when all the badges on the screen are animated if one of them is updated. Fixed only for badges that have Text or Icon in badge content.
-
1.0.204 Jun 2019 -
1.0.104 Jun 2019 -
1.0.004 Jun 2019 -
0.0.615 Sep 2018Nothing published for this version
-
0.0.512 Aug 2018Nothing published for this version
-
0.0.402 Aug 2018Nothing published for this version
-
0.0.302 Aug 2018Nothing published for this version
-
0.0.202 Aug 2018Nothing published for this version
-
0.0.102 Aug 2018Nothing published for this version