Skip to content

fix: 4.0.0 bug fixes, CI, example app and smaller package - #136

Merged
yadaniyil merged 2 commits into
masterfrom
fix/health-4.0
Sep 24, 2026
Merged

yadaniyil merged 2 commits into
masterfrom
fix/health-4.0

Conversation

@yadaniyil

Copy link
Copy Markdown
Collaborator

Release 4.0.0: bug fixes, CI repair, working example app and a smaller package, on top of the material_ui migration from #135.

Fixes #133

Bug fixes

  • Incorrect description of ignorePointer #133: the ignorePointer docs said the opposite of what it does.
  • BadgeStyle.elevation has drawn no shadow since 3.0.3 (MaterialType.transparency skips it). It now draws a shadow, and the default is 0 so existing badges look the same.
  • BadgePosition.center() + onTap jumped to the child's top-left corner.
  • centerStart() / centerEnd() were not vertically centered.
  • RTL + onTap shifted the badge. The tap padding is now directional.
  • Hidden badges (showBadge: false) still caught taps and fired onTap.
  • Twitter / Instagram shapes crashed with gradients of 3+ colors.
  • toAnimate false → true at runtime left the badge invisible.
  • Every rebuild leaked a CurvedAnimation listener.

Each fix has a regression test that fails on the old code. 175 → 199 tests.

Maintenance

  • CI: removed the broken "Code Quality" workflow (it used flutter format, which no longer exists). Bumped actions to versions that run on current runners. Added a weekly run and a non-blocking Flutter beta job.
  • Publishing: publish.yml now follows pub.dev automated publishing (OIDC via dart-lang/setup-dart, environment: pub.dev, tag vX.Y.Z). The old job hung waiting for a browser login.
  • Example app: regenerated the Android / iOS / Windows projects. The old ones (Gradle 6.7, CocoaPods leftovers) no longer built. Fixed the test screen overflowing on phones.
  • Package size: added .pubignore, so the archive goes from 7 MB to 176 KB (README GIFs load from GitHub anyway). Untracked generated files.
  • Docs: README (build/downloads badges, onTap padding, ignorePointer), CHANGELOG 4.0.0, pubspec topics, AGENTS.md.

Testing

  • flutter analyze lib/ test/ example/: no issues. dart format --set-exit-if-changed .: clean. flutter test: 199/199.
  • dart pub publish --dry-run: 176 KB.
  • iOS simulator + Android emulator: built and ran the example, the test screen and a verification screen for every fix, comparing old vs new screenshots.
    • Every fix shows up as expected.
    • No other visual differences, no runtime errors.
    • Tap tests pass (badge, pass-through, center + onTap, hidden badge).

After merge (maintainer)

  • pub.dev → Admin: enable automated publishing for yako-dev/flutter_badges, tag pattern v{{version}}.
  • GitHub: create the pub.dev environment.
  • Release: push tag v4.0.0.

🤖 Generated with Claude Code

CLAUDE.md now only imports AGENTS.md, so Claude and Codex read the same file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Bug fixes:
- ignorePointer docs were inverted (#133)
- BadgeStyle.elevation drew no shadow since 3.0.3; default is now 0
- center() + onTap jumped to the child's top-left corner
- centerStart()/centerEnd() were not vertically centered
- RTL + onTap shifted the badge (tap padding is now directional)
- hidden badges caught taps and fired onTap
- twitter/instagram shapes crashed with 3+ gradient colors
- turning toAnimate on at runtime left the badge invisible
- a new CurvedAnimation listener leaked on every rebuild

Maintenance:
- CI: remove broken Code Quality workflow, set up pub.dev automated
  publishing, bump actions, weekly beta run
- example: regenerate android/ios/windows projects, fix test screen
  overflow on phones
- .pubignore: archive 7 MB -> 176 KB
- README/CHANGELOG/AGENTS.md updates for 4.0.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yadaniyil
yadaniyil merged commit 4d02110 into master Sep 24, 2026
3 checks passed
@yadaniyil
yadaniyil deleted the fix/health-4.0 branch September 24, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect description of ignorePointer

1 participant