Repository navigation
fix: present the inline date picker from Ruby's inline prop - #98
Merged
Merged
Conversation
Ruby's cupertino_sliding_segmented_button sends the canonical SegmentedButton wire type, so the Cupertino renderer's check for the raw CupertinoSlidingSegmentedButton wire name never matched and every sliding control rendered as the plain segmented control on iOS. Select the sliding control from the declared sliding property instead. Material has no sliding equivalent and keeps rendering SegmentedButton. Clients from before the canonical wire types still send the legacy wire name: the alias table in control_type.dart now carries the properties an alias implies (sliding: true for CupertinoSlidingSegmentedButton), applied when the Control is built, so no renderer branches on a wire name.
Ruby's cupertino_date_picker sends the canonical DatePicker wire type, so the renderers' check for the raw CupertinoDatePicker wire name never matched: iOS always presented the date picker as a dialog and the inline picker was unreachable (on Material too). Choose inline vs dialog from the declared inline property on both designs, and let the alias table imply inline: true for the legacy CupertinoDatePicker wire name.
This was referenced Oct 29, 2026
Brings in the PRs merged since, so #98 merges; conflicts take the resolution tested on the full merge of the open PRs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MqfxcsDiEUZngybe9L72JQ
This was referenced Nov 6, 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.
Pairs with AdamMusa/ruflet#62 (Ruby). This is a legacy-renderer fix in the same class as #93, not part of the control-core stack.
Depends on #92 and #93.
material_date_picker.dart, which this PR edits.Bug
Since b9e52ff7, Ruby's
cupertino_date_pickersends the canonicalDatePickerwire type. Both renderers chose the inline picker only when the rawcontrol.type == "CupertinoDatePicker", which no longer matches:CupertinoDatePickerDialogControl, so the inline wheel picker was unreachable. Acupertino_date_pickerplaced in a layout rendered nothing untilopen: true, and then showed a popup.MaterialInlineDatePickerControlwas unreachable too.Fix
inline, which the paired Ruby PR declares.cupertino_date_pickerdefaults it to true, anddate_pickertakes it through the canonical keyword union. No renderer reads the wire name any more, per the owner's rule.inline: truerendersCupertinoDatePickerin place; otherwise it is the dialog.inline: truerenders the inlineCalendarDatePicker; otherwise it is the dialog.CupertinoDatePickerwire name. The alias-properties table from fix: render the iOS sliding segmented control from Ruby's sliding prop #93 gainsCupertinoDatePicker→{inline: true}, applied inControl.fromMapwithputIfAbsent, so an explicit value still wins.Behaviour change
cupertino_date_picker(...)on iOSopen: trueCupertinoDatePickerin place, as before b9e52ff7cupertino_date_picker(...)on Androidopen: trueCalendarDatePickerin place, as before b9e52ff7date_picker(...)(noinline)date_picker(inline: true)CupertinoDatePickerwire (old gems)Tests
test/widgets/ruby_date_picker_inline_test.dart(4):inline: true: rendersCupertinoDatePickerin place, with noCupertinoPopupSurface. Geometry: the wheel is laid out (height > 100).open: truewithoutinline: presents the dialog (aCupertinoPopupSurfaceis shown).CupertinoDatePickerwire name: getsinline == trueand renders in place.inline: true: rendersCalendarDatePicker, with noDialog.team/verify_pr.shwith the paired ruflet branch (RUBY_PKGS="ruflet_core ruflet ruflet_server ruflet_rails"): PASS.flutter test+1094, analyze clean.sliding, which clears once ruflet#61 merges.