Repository navigation
Conversation
Move each Material renderer out of the shared material_picker_controls.dart into its own library: material_action_sheet.dart (ActionSheet and its action), material_context_menu_action.dart, material_date_picker.dart, material_picker.dart and material_timer_picker.dart. Class bodies are unchanged; each library keeps only the imports it uses and each adaptive entry imports only its own renderer, so the Picker, TimerPicker, DatePicker, ActionSheet and ContextMenuAction migrations no longer share a file.
This was referenced Oct 29, 2026
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.
What
Item 7 (first half) of the decoupling plan: a pure-move split of the shared
material_picker_controls.dartinto one library per control, so the Picker, TimerPicker, DatePicker, ActionSheet and ContextMenuAction migrations no longer share a file.material_action_sheet.dartMaterialActionSheetControl,MaterialActionSheetActionControladaptive_action_sheet.dartmaterial_context_menu_action.dartMaterialContextMenuActionControladaptive_context_menu_action.dartmaterial_date_picker.dartMaterialDatePickerRenderer,MaterialInlineDatePickerControladaptive_date_picker.dartmaterial_picker.dartMaterialPickerControladaptive_picker.dartmaterial_timer_picker.dartMaterialTimerPickerControladaptive_timer_picker.dartadaptive_*entry swaps its onematerial_picker_controls.dartimport for its own renderer's file.material_picker_controls.dartis deleted. The registry,control_type.dartand every test are untouched. No dependency on the control-core stack: this PR is based directly oncodex/engine-initialization.Audit note (no behaviour change)
wire_key_audit.rbreports 3 findings as "new". They predate this PR and become visible only because each renderer now has its own file:ContextMenuAction dart_reads_not_in_ruby icon: the Material ContextMenuAction has always readicon; Ruby's ContextMenuAction does not declare it. The shared file was used by five wire types, which hid the attribution.ContextMenuAction prop_not_read badge/layout_key_without_wrapper badge: the Material ContextMenuAction never wrappedLayoutControl. The shared file's unusedbase_controls.dartimport made the audit assume it did.Both belong to the ContextMenuAction migration (spec item 15), not to this move.
Tests
team/verify_pr.shon head 9432b8e (base 20e8185) with rufletorigin/main: PASS: engineflutter test+1084 all passed (renderer matrix and architecture boundary tests included),flutter analyze lib testno issues, ruflet_core 161/161 files.Gate
No open PR touches
material_picker_controls.dart, the fiveadaptive_*entries or the new file names; checked before starting and before opening.