Repository navigation
feat(demo): make every widgetbook story usable and add the missing families - #682
Open
chrishiguto wants to merge 14 commits into
Open
chrishiguto wants to merge 14 commits into
chrishiguto wants to merge 14 commits into
Conversation
…ive and fix story icons
…gination, resizable panels, tree view, chart
…h/wb-fix-4-widgetbook
…h/wb-fix-4-widgetbook
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
A browser pass over the Fortal widgetbook found stories that could not be used to review their family: the combobox dropped keystrokes with semantics on, the segmented control and data table were catalogs that ignored clicks, twenty installed families had no story at all, and a few stories drew the wrong thing.
Scope
storyHostgives each story its ownOverlayinside the page route (Overlay.wrap). Under the router's page-basedNavigator, any overlay that opened made Flutter wrap the page route in a new semantics node, and on the web the move took DOM focus from a focused text field: the combobox story typed one character. Flutter's ownAutocompletedoes the same under a page-basedNavigator. Inside the route, the overlay's node joins the route's own and nothing moves. The routes test uses the same host.helpers/story_navigator.dart: the bottom sheet and drawer stories open from a navigator under the theme, since the root navigator sits above the theme addon.sanand opens its list; the wiring fixes each have a test. The actions polish board golden is refreshed for the bold icon.Tradeoffs
Blast Radius
apps/demoonly: stories, helpers,main.dart, tests, generated directories and one golden. No package or registry change.Verification
sanand lists six cities (before:s, no list).cd apps/demo && flutter testandflutter analyze(no new issues).