Repository navigation
fix(fortal): keep the date picker trigger to its content width - #681
Open
chrishiguto wants to merge 5 commits into
Open
chrishiguto wants to merge 5 commits into
chrishiguto wants to merge 5 commits into
Conversation
…h/wb-fix-3-date-picker
…h/wb-fix-3-date-picker
This branch has not been deployed
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.
Why
The Fortal date picker trigger took the full width of loose constraints: centred in a 1000px story it stretched edge to edge, and the panel opened at the far left under it. The value text sat in a
SizedBox(width: double.infinity)so the chevron could reach the end of the 200px minimum.Scope
FortalDatePickerwraps its picker inIntrinsicWidth. Under loose constraints the trigger is its content width, at least 200px, with the chevron at its end; under a tight width it still fills it.Tradeoffs
Blast Radius
FortalDatePickerplaced under loose constraints becomes narrower (from the available width to its content, at least 200px). Pickers in a stretched column or a sized box keep their width.date_picker.Verification
IntrinsicWidthtwo of the four new tests fail.cd registry_source && flutter test;cd apps/demo && flutter testwith the refreshed golden.