Skip to content

chore(deps): bump badges from 3.2.0 to 4.0.1 - #875

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pub/badges-4.0.1
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pub/badges-4.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 5, 2026

Copy link
Copy Markdown
Contributor

Bumps badges from 3.2.0 to 4.0.1.

Release notes

Sourced from badges's releases.

badges 4.0.0

Breaking Changes

  • Migrated to package:material_ui (#135, thanks @​mayainle) — Material and Cupertino were decoupled from the Flutter SDK in Flutter 3.47 and now ship as standalone packages. This package now imports package:material_ui/material_ui.dart instead of package:flutter/material.dart.
    • In apps that use material_ui, badge content now gets the app's theme text style without MaterialUiCompatibilityBridge. Apps still on package:flutter/material.dart keep working, but badge text uses the default Material text style until they migrate. This is a major version bump, as the Flutter team recommends for this migration.
    • To hide the ambiguous Badge, use import 'package:material_ui/material_ui.dart' hide Badge; instead of the Flutter Material equivalent.
  • Minimum SDK raised to Dart 3.13.0 / Flutter 3.47.0, the floor required by material_ui.

Bug Fixes

  • Issue #133 — The ignorePointer docs said the opposite of what it does. true lets taps pass through the badge; false (default) lets the badge get taps.
  • BadgeStyle.elevation works again. It has drawn no shadow since 3.0.3. The default is now 0, so badges that don't set it look the same as before.
  • BadgePosition.center() with onTap no longer moves the badge to the top-left corner.
  • BadgePosition.centerStart() / centerEnd() are now vertically centered, as documented.
  • Right-to-left layouts with onTap no longer shift the badge. The tap padding is now directional.
  • Hidden badges (showBadge: false) no longer catch taps or call onTap; taps reach the widget below.
  • Twitter / Instagram shapes no longer crash with gradients of 3+ colors. Gradient stops, tileMode, sweep angles and directional alignments are now used.
  • Turning toAnimate on at runtime no longer leaves the badge invisible.
  • Fixed a listener leak: every rebuild added a listener to the appearance controller.
  • Removed a no-op ConstrainedBox. The 3.2.0 "minimum-square sizing" note was wrong: badge sizing did not change in 3.2.0 and does not change now.

Maintenance

  • Replaced SizeTransition.axisAlignment, deprecated after Flutter v3.41, with alignment. BadgeAnimation.sizeTransitionAxisAlignment is unchanged and still takes a double.
  • CI: removed the broken "Code Quality" workflow, set up pub.dev automated publishing in the publish workflow, updated actions, added a weekly run on Flutter beta.
  • Example app: regenerated Android / iOS / Windows projects so it builds again, and fixed the test screen overflowing on phone widths.
  • Smaller pub.dev archive (.pubignore).
  • README: fixed build and downloads badges, documented onTap padding and ignorePointer.

Install: flutter pub add badges (needs Flutter 3.47+ / Dart 3.13+). Apps on older Flutter keep getting 3.2.0.

Full changelog: yako-dev/flutter_badges@v3.2.0...v4.0.0

Changelog

Sourced from badges's changelog.

[4.0.1] - [September 26, 2026]

  • README: a More from Yako grid with an animated preview of each of our other packages.

[4.0.0] - [September 24, 2026]

Breaking Changes

  • Migrated to package:material_ui (#135, thanks @​mayainle) — Material and Cupertino were decoupled from the Flutter SDK in Flutter 3.47 and now ship as standalone packages. This package now imports package:material_ui/material_ui.dart instead of package:flutter/material.dart.
    • In apps that use material_ui, badge content now gets the app's theme text style without MaterialUiCompatibilityBridge. Apps still on package:flutter/material.dart keep working, but badge text uses the default Material text style until they migrate. This is a major version bump, as the Flutter team recommends for this migration.
    • To hide the ambiguous Badge, use import 'package:material_ui/material_ui.dart' hide Badge; instead of the Flutter Material equivalent.
  • Minimum SDK raised to Dart 3.13.0 / Flutter 3.47.0, the floor required by material_ui.

Bug Fixes

  • Issue #133 — The ignorePointer docs said the opposite of what it does. true lets taps pass through the badge; false (default) lets the badge get taps.
  • BadgeStyle.elevation works again. It has drawn no shadow since 3.0.3. The default is now 0, so badges that don't set it look the same as before.
  • BadgePosition.center() with onTap no longer moves the badge to the top-left corner.
  • BadgePosition.centerStart() / centerEnd() are now vertically centered, as documented.
  • Right-to-left layouts with onTap no longer shift the badge. The tap padding is now directional.
  • Hidden badges (showBadge: false) no longer catch taps or call onTap; taps reach the widget below.
  • Twitter / Instagram shapes no longer crash with gradients of 3+ colors. Gradient stops, tileMode, sweep angles and directional alignments are now used.
  • Turning toAnimate on at runtime no longer leaves the badge invisible.
  • Fixed a listener leak: every rebuild added a listener to the appearance controller.
  • Removed a no-op ConstrainedBox. The 3.2.0 "minimum-square sizing" note was wrong: badge sizing did not change in 3.2.0 and does not change now.

Maintenance

  • Replaced SizeTransition.axisAlignment, deprecated after Flutter v3.41, with alignment. BadgeAnimation.sizeTransitionAxisAlignment is unchanged and still takes a double.
  • CI: removed the broken "Code Quality" workflow, set up pub.dev automated publishing in the publish workflow, updated actions, added a weekly run on Flutter beta.
  • Example app: regenerated Android / iOS / Windows projects so it builds again, and fixed the test screen overflowing on phone widths.
  • Smaller pub.dev archive (.pubignore).
  • README: fixed build and downloads badges, documented onTap padding and ignorePointer.
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [badges](https://github.com/yako-dev/flutter_badges) from 3.2.0 to 4.0.1.
- [Release notes](https://github.com/yako-dev/flutter_badges/releases)
- [Changelog](https://github.com/yako-dev/flutter_badges/blob/master/CHANGELOG.md)
- [Commits](yako-dev/flutter_badges@v3.2.0...v4.0.1)

---
updated-dependencies:
- dependency-name: badges
  dependency-version: 4.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants