Skip to content

Use new BreadcrumbNavigator widget in code size screen - #2303

Merged
kenzieschmoll merged 4 commits into
flutter:masterfrom
kenzieschmoll:breadcrumb
Aug 27, 2020
Merged

kenzieschmoll merged 4 commits into
flutter:masterfrom
kenzieschmoll:breadcrumb

Conversation

@kenzieschmoll

Copy link
Copy Markdown
Member

In the user studies, we observed that it was not obvious to users that the breadcrumbs were clickable. This breadcrumb Navigator is similar to an IDE breadcrumb navigator and should feel more familiar to users. The breadcrumbs also look more clickable in this version.

Screen Shot 2020-08-27 at 2 34 36 PM

},
),
);
final breadcrumbs = List<Breadcrumb>.generate(pathFromRoot.length, (index) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: there probably won't be enough breadcrumbs to matter but it could be nice to continue to use itemBuilder like the code was previously so you don't build the breadcrumb widgets until they are needed. you're already using List.generate so the api shape seems about identical. I would just have the Breadcrumb navigator take an arbitrary widget as a child so you can specify the ListView here like it was done before.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched to a builder constructor so that we still get the benefit of ListView.builder but the consumer does not have to be responsible for the List widget code.

@jacob314 jacob314 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks nice!
lgtm

@kenzieschmoll

Copy link
Copy Markdown
Member Author

Landing on red test flake - we may want to disable that test, as it is blocking development pretty bad lately.

@kenzieschmoll
kenzieschmoll merged commit c5dc677 into flutter:master Aug 27, 2020
@kenzieschmoll
kenzieschmoll deleted the breadcrumb branch August 27, 2020 22:47
@kenzieschmoll kenzieschmoll mentioned this pull request Sep 3, 2020
1 of 5 tasks
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.

2 participants