feat: release v2.0.0 — Dart 3, Flutter 3.27 compat, bug fixes, CI/CD#20
Merged
Conversation
Breaking changes: - Remove FlareConfiguration and flare_flutter dep (broken in Flutter 3.27, fixes #17) - Require Dart SDK >=3.0.0 <4.0.0 - Replace textScaleFactor with textScaler in StatusAlertTextConfiguration New features: - Add onComplete callback to StatusAlert.show() (addresses #19) Bug fixes: - Rewrite dismissOnBackgroundTap with OverlayEntry+GestureDetector instead of showDialog, eliminating Navigator stack pollution and broken auto-dismiss (#19) - blurPower parameter now actually applied (was hardcoded to 2.0) - Touch pass-through (IgnorePointer) verified and cleaned up (#15) Improvements: - Replace pedantic with flutter_lints, add analysis_options.yaml (PR #14) - Rename status_allert_manager.dart -> status_alert_manager.dart (typo fix) - Rename private state class to _StatusAlertBaseWidgetState - Remove unused scaleController field, fix null-safe dispose - Add GitHub Actions CI workflow (analyze + test on push/PR) - Add GitHub Actions publish workflow (pub.dev on version tag) - Expand test suite: isVisible, hide(), onComplete, touch pass-through https://claude.ai/code/session_017nS5t2oQz1X4o359oZiRVS
- Fix ListTile leading: replace rate-limited network image with a local colored box + icon (no more HTTP 429 errors) - Fix Column RenderFlex overflow: replace AspectRatio(1.0) with ConstrainedBox(minHeight = width) so the alert box is at least square but grows to fit content when title + subtitle + icon would otherwise overflow https://claude.ai/code/session_017nS5t2oQz1X4o359oZiRVS
- main.dart: add const MyApp({super.key}) (use_key_in_widget_constructors)
- main.dart: runApp(const MyApp()) and home: const StatusAlertScreen() (prefer_const_constructors)
- main.dart: replace deprecated primarySwatch with colorScheme.fromSeed
- status_alert_base_widget.dart: use const Tween<double>(...) (prefer_const_constructors)
- status_alert_manager.dart: remove unused onComplete parameter
https://claude.ai/code/session_017nS5t2oQz1X4o359oZiRVS
- status_alert_base_widget.dart: revert wrong const on Tween (Tween has no const constructor — const_with_non_const error) - lib/status_alert.dart: remove unnecessary library name directive (unnecessary_library_name info) - test/widget_tests.dart: use const StatusAlertBaseWidget in WidgetConfiguration test (prefer_const_constructors info) - analysis_options.yaml: exclude example/** from analyzer to suppress invalid_dependency warning on the path: ../ dependency https://claude.ai/code/session_017nS5t2oQz1X4o359oZiRVS
Flutter test runner requires files to end with _test.dart https://claude.ai/code/session_017nS5t2oQz1X4o359oZiRVS
The Stack layout put both buttons at identical screen coordinates, so tapping 'Tap me' hit 'Show Alert' (rendered on top) instead. Replace Stack with Column + Scaffold so the buttons are at separate positions and the tap lands on the correct target. https://claude.ai/code/session_017nS5t2oQz1X4o359oZiRVS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking changes:
New features:
Bug fixes:
showDialog, eliminating Navigator stack pollution and broken auto-dismiss (Navigator.pop(context) is required after showing an alert #19)
Improvements:
https://claude.ai/code/session_017nS5t2oQz1X4o359oZiRVS