Skip to content

fix: honor Ruby expand_icon_color on ExpansionPanelList - #4

Merged
AdamMusa merged 2 commits into
codex/engine-initializationfrom
fix/expansion-panel-icon-color
Oct 28, 2026
Merged

AdamMusa merged 2 commits into
codex/engine-initializationfrom
fix/expansion-panel-icon-color

Conversation

@AdamMusa

Copy link
Copy Markdown
Owner

Summary

Ruby's ExpansionPanelList (materials/expansionpanellist_control.rb) declares expand_icon_color, a color string. material_expansion_panel.dart read expanded_icon_color, which Ruby rejects as an unknown keyword, so the expand-icon color was always dropped.

Fix

  • Material (material_expansion_panel.dart): ExpansionPanelList.expandIconColor now reads expand_icon_color.
  • Cupertino (cupertino_content_controls.dart): the iOS panel list did not read the key at all. Its chevron Icon now uses expand_icon_color when it is set. When it is unset, the color is null, so the native default is unchanged.

No other engine code reads expanded_icon_color.

Tests

New test/widgets/ruby_expansion_panel_keys_test.dart. Both tests failed before the fix, with color null.

  • Material: sends expand_icon_color: "#ff0000" and checks that ExpansionPanelList.expandIconColor and the built ExpandIcon.color are both red.
  • Cupertino: checks that the CupertinoIcons.chevron_down icon is red.

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

QA finding #10

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