PackageTrack
Sign in Get early access

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 2026
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 30
  1. 3.2.0 10 Apr 2026
    Release notes

    Bug Fixes

    • Issue #114 — Fixed showBadge: false being ignored when a loop animation is active. didUpdateWidget now handles showBadge changes before any loop-animation guards.
    • Issue #130showBadge: false now hides the badge immediately. _animationController.stop() and _appearanceController.stop() are called before reverse() 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.strokeAlignInside in BoxDecoration, preventing background-colour bleed at antialiased edges.
    • Issue #115 (partial) — Key-based animation re-trigger: setting a Key on badgeContent and changing it now restarts the animation for any widget type, not just Text and Icon.

    New Features

    • BadgeStyle.copyWith — Returns a copy of a BadgeStyle with 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 / appearanceController getters — Public access to the internal animation controllers for advanced use cases (PR #128).
    • _BadgeVisual private widget — Extracted badge visual from an inner closure into a proper StatelessWidget so 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 — Added assert statements documenting constructor invariants instead of silently force-unwrapping nullable fields.
    • Controller duration updatesdidUpdateWidget now updates AnimationController durations when badgeAnimation duration 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 (600px400px).
    • README: added hide Badge import pattern (issue #123).
    • Bumped flutter_lints to ^6.0.0.
    Open source →
  2. 3.1.2 28 Aug 2023
    Release notes
    • fix: revert commit 3.1.0 (#112)

    • Revert "3.1.0 (#109)"

    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]

    Open source →
    Release notes
    • Update Dart SDK version. Update readme.
    Open source →
  3. 3.1.1 14 Apr 2023
    Release notes
    • Return to 3.0.3 version functionality due to bug
    Open source →
  4. 3.1.0 11 Apr 2023
    Release notes
    • Add BadgeShape.triangle
    • Fix custom shapes deformation depending on the badge content
    Open source →
  5. 3.0.3 24 Mar 2023
    Release notes
    • Fix transparent color for the badge
    Open source →
  6. 3.0.2 25 Jan 2023
    Release notes

    Bump version to 3.0.2 and fix typo in the readme

    Open source →
    Release notes
    • Due to Badge widget introduction in Material library, the package is refatored to avoid ambiguous imports. badges.Badge used everywhere.
    • Readme updated
    Open source →
  7. 3.0.1 25 Jan 2023
    Release notes

    Bump version to 3.0.1 and fix typo in the readme

    Open source →
  8. 3.0.0 25 Jan 2023
    Release notes

    fix: Change imports of badges lib everywhere because Material introdu…

    Open source →
  9. 3.0.0-beta.1 25 Dec 2022 pre-release
    Release notes

    [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
    Open source →
    Release notes
    • 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
    Open source →
  10. 2.0.3 02 Jun 2022
    Release notes

    Version update to 2.0.3

    Open source →
    Release notes
    • Fix border radius of the badge, when using it with gradient
    Open source →
  11. 2.0.2 29 Nov 2021
    Release notes
    • Add gradient parameter to the Badge
    • Add BadgePosition.center() as a new factory constructor for the BadgePosition
    Open source →
  12. 2.0.1 13 May 2021
    Release notes
    • Add parameter to edit fit parameter Stack widget
    Open source →
  13. 2.0.0-nullsafety.1 13 Mar 2021 pre-release
    Release notes
    • Null safety, finally! Prerelease
    Open source →
  14. 1.2.0 05 Mar 2021
    Release notes
    • Breaking change! Deprecated parameter 'Overflow' replaced with 'Clip' for Stack widget.
    • Documentation implementation
    Open source →
  15. 1.1.6 08 Dec 2020
    Release notes
    • Fix error parameter with the name 'clipBehavior'
    Open source →
  16. 1.1.5 07 Dec 2020
    Release notes
    • Add borderSide parameter to customize the badge border
    • Fix issue where null border radius was provided
    Open source →
  17. 1.1.4 26 Oct 2020
    Release notes
    • Migrate Android embedding v2, fix overflow issue
    • Ignore pointer option for Badge
    • Custom border radius for Badge
    Open source →
  18. 1.1.3 25 Sep 2020
    Release notes
    • Fix for deprecated overflow parameter on Stack widget
    Open source →
  19. 1.1.1 27 Feb 2020
    Release notes
    • Add alignment parameter to define position of the whole widget
    Open source →
  20. 1.1.0 02 Jul 2019
    Release notes
    • Added showBadge parameter to hide or show badge with animation
    Open source →
  21. 1.0.3 05 Jun 2019
    Release notes

    Fixed animation for all badges even if only one is updated. Fixed onl…

    Open source →
    Release notes
    • 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.
    Open source →
  22. 1.0.2 04 Jun 2019
    Release notes
    • Updated versions in readme.
    Open source →
  23. 1.0.1 04 Jun 2019
    Release notes

    Images and description update

    Open source →
    Release notes
    • Updated readme images and lib description.
    Open source →
  24. 1.0.0 04 Jun 2019
    Release notes
    • Badge class for creating badges for every widget.
    Open source →
  25. 0.0.6 15 Sep 2018

    Nothing published for this version

  26. 0.0.5 12 Aug 2018

    Nothing published for this version

  27. 0.0.4 02 Aug 2018

    Nothing published for this version

  28. 0.0.3 02 Aug 2018

    Nothing published for this version

  29. 0.0.2 02 Aug 2018

    Nothing published for this version

  30. 0.0.1 02 Aug 2018

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive