Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Aug 18, 2018

Also fixes ExpansionPanelHeader to properly merge semantics.

Fixes #20739
Fixes #19909
Fixes #19910

Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

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

This generally looks fine; just want to sort out the icon theme test color change.


final IconTheme iconTheme = tester.firstWidget(find.byType(IconTheme));
expect(iconTheme.data.color, equals(Colors.black26));
expect(iconTheme.data.color, equals(Colors.black));
Copy link
Contributor

Choose a reason for hiding this comment

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

This change doesn't appear to be related to the PR or the issues the PR addresses. In fact black doesn't seem like a disabled color..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this just changed because I wrapped the app in a MaterialWidget

Copy link
Contributor

Choose a reason for hiding this comment

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

The iconTheme issue appears to be related to: #3188

Copy link
Contributor

Choose a reason for hiding this comment

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

According to the spec, the disabled color for icons should be black.withOpacity(0.38)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I wait until this is resolved or just ignore it and let it be cleaned up by the fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually nvm, I need to make sure this is still disabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, the issue was that the finder was looking for the first theme. Changed to the last theme to get the disable theme. Otherwise we get the material apps default theme


"expandedIconTapHint": "Collapse",
"@expandedIconTapHint": {
"description": "The verb infinitive which describes what happens when an expanded ExpandIcon is activated."
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be more helpful to describe this translation as describing what happens an expanded ExpandIcon toggle button is pressed. Likewise for @collapsedIconTapHint.

Copy link
Contributor Author

@jonahwilliams jonahwilliams Aug 20, 2018

Choose a reason for hiding this comment

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

This one is tricky because it is used in a very specific way to override part of Talkback's hint text. For example:

Value: expand
Talkback: "double tap to expand"

Value: to expand
Talback: "double tap to to expand"

So it needs to be phrased very carefully ... and this also depends on how Talkback translates the phrase as well.

@jonahwilliams jonahwilliams merged commit 09fe347 into flutter:master Aug 22, 2018
@HansMuller
Copy link
Contributor

LGTM

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

3 participants