Skip to content

feat!: modernize library to v2.0.0#4

Merged
yadaniyil merged 5 commits intomainfrom
claude/flutter-library-modernization-ibTOY
Apr 9, 2026
Merged

feat!: modernize library to v2.0.0#4
yadaniyil merged 5 commits intomainfrom
claude/flutter-library-modernization-ibTOY

Conversation

@yadaniyil
Copy link
Copy Markdown
Contributor

Summary

  • Breaking: onChanged signature changed to ValueChanged<bool> — cleaner, idiomatic Flutter API
  • Bumped all dependencies to latest: flutter_svg ^2.2.3, mocktail ^1.0.4, flutter_lints ^6.0.0
  • Raised SDK floor to Flutter >=3.27.0 / Dart >=3.4.0
  • Fixed animation double-trigger flash on initial render
  • Added super.key, private state fields, const Color literals, proper createState annotation
  • Replaced empty test suite with 11 real widget tests
  • Updated README examples and install version

Test plan

  • CI passes (flutter_package workflow runs tests + coverage check at 70%)
  • Spell check passes on markdown files
  • Semantic PR check passes

claude added 5 commits April 9, 2026 10:06
- BREAKING: onChanged signature changed from Function({bool changed})
  to ValueChanged<bool> for idiomatic Flutter usage
- Bump flutter_svg ^2.0.7 -> ^2.2.3, mocktail ^0.3.0 -> ^1.0.4,
  flutter_lints ^2.0.0 -> ^6.0.0
- Raise SDK floor: Flutter >=3.27.0, Dart >=3.4.0
- Fix: add super.key, const Colors, private state fields,
  remove double-animation flash in initState, move onChanged
  call outside setState
- Replace empty test suite with 11 widget tests
- Add min_coverage: 70 to CI workflow

https://claude.ai/code/session_01TR448dBnMeBSf6cHZfpCD2
- Update install version to ^2.0.0
- Fix onChanged signature in basic and advanced examples
- Add migration guide for v1.x -> v2.0.0

https://claude.ai/code/session_01TR448dBnMeBSf6cHZfpCD2
@yadaniyil yadaniyil merged commit cc227d4 into main Apr 9, 2026
3 checks passed
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.

2 participants