Skip to content

fix: honor Ruby year_2023 on ProgressRing - #11

Merged
AdamMusa merged 2 commits into
codex/engine-initializationfrom
fix/progress-ring-year-2023
Oct 28, 2026
Merged

AdamMusa merged 2 commits into
codex/engine-initializationfrom
fix/progress-ring-year-2023

Conversation

@AdamMusa

Copy link
Copy Markdown
Owner

Summary

Ruby's ProgressRing (materials/progressring_control.rb) declares year_2023, a boolean. progress_ring.dart read "year2023", so progress_ring(year_2023: false) never selected the 2024 Material 3 ring style. ProgressBar (material_progress_bar.dart) and Slider (slider.dart) already read year_2023. ProgressRing was the only one out of step.

Fix

CircularProgressIndicator.year2023 now reads year_2023. When the key is absent the value is still null, so the theme decides, as before.

This is Material only. The Cupertino renderer is CupertinoActivityIndicator, which has no year-2023 style. No other engine code reads "year2023".

Tests

New test/widgets/ruby_progress_ring_keys_test.dart (Material/Android):

  • For year_2023: false and year_2023: true, it checks that CircularProgressIndicator.year2023 matches. Both failed before the fix (null).
  • Without the key, it checks that year2023 stays null.

verify_pr.sh: flutter test +698, all passed (695 baseline + 3 new). flutter analyze lib test found no issues. Flutter 3.41.2.

QA finding #13

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.

1 participant