Repository navigation
fix: honor Ruby year_2023 on ProgressRing - #11
Merged
AdamMusa merged 2 commits intoOct 28, 2026
Merged
Conversation
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.
Summary
Ruby's
ProgressRing(materials/progressring_control.rb) declaresyear_2023, a boolean.progress_ring.dartread"year2023", soprogress_ring(year_2023: false)never selected the 2024 Material 3 ring style. ProgressBar (material_progress_bar.dart) and Slider (slider.dart) already readyear_2023. ProgressRing was the only one out of step.Fix
CircularProgressIndicator.year2023now readsyear_2023. When the key is absent the value is stillnull, 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):year_2023: falseandyear_2023: true, it checks thatCircularProgressIndicator.year2023matches. Both failed before the fix (null).year2023staysnull.verify_pr.sh:flutter test+698, all passed (695 baseline + 3 new).flutter analyze lib testfound no issues. Flutter 3.41.2.QA finding #13